summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/names.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-10-10 15:03:01 +0000
committernicm <nicm@openbsd.org>2009-10-10 15:03:01 +0000
commitbf87e35128acfbd998d66b30530822dee7e3a9f2 (patch)
tree81d8bd8c8e42b8bff09add1c9f6426f025fcbb9f /usr.bin/tmux/names.c
parentNew option, mouse-select-pane. If on, the mouse may be used to select the (diff)
downloadwireguard-openbsd-bf87e35128acfbd998d66b30530822dee7e3a9f2.tar.xz
wireguard-openbsd-bf87e35128acfbd998d66b30530822dee7e3a9f2.zip
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.
Diffstat (limited to 'usr.bin/tmux/names.c')
0 files changed, 0 insertions, 0 deletions