mirror of
https://github.com/tmux/tmux.git
synced 2026-08-23 07:10:51 +00:00
bc236109fd8b858f1bfd7e4b9c5d5e493bdd1563
Rather than running status-left, status-right and window title #() with popen immediately every redraw, queue them up and run them in the background, starting each once every status-interval. The actual status line uses the output from the last run. This brings several advantages: - tmux itself may be called from inside #() without causing the server to hang; - likewise, sleep or similar doesn't cause the server to block; - commands aren't run excessively often when redrawing; - commands shared by status-left and status-right, or used multiple times, will only be run once. run-shell and if-shell still use system()/popen() but will be changed over to use this too later.
Description
tmux source code
Languages
C
75.9%
Shell
16%
Roff
5.9%
Yacc
1%
M4
0.7%
Other
0.4%