diff options
author | Tiago Cunha <tcunha@gmx.com> | 2009-10-11 23:55:26 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2009-10-11 23:55:26 +0000 |
commit | bc236109fd8b858f1bfd7e4b9c5d5e493bdd1563 (patch) | |
tree | e9f9eab7bc648d160904421f6e7f756b4efef557 /tmux.1 | |
parent | 07ad6da7e826db31f3de174c0036f0e0400f9207 (diff) |
Sync OpenBSD patchset 374:
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 'tmux.1')
-rw-r--r-- | tmux.1 | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,4 +1,4 @@ -.\" $Id: tmux.1,v 1.184 2009-10-11 23:46:02 tcunha Exp $ +.\" $Id: tmux.1,v 1.185 2009-10-11 23:55:26 tcunha Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> .\" @@ -1437,6 +1437,11 @@ may contain any of the following special character sequences: The #(command) form executes .Ql command as a shell command and inserts the first line of its output. +Note that shell commands are only executed once at the interval specified by +the +.Ic status-interval +option: if the status line is redrawn in the meantime, the previous result is +used. #[attributes] allows a comma-separated list of attributes to be specified, these may be .Ql fg=colour |