diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2013-07-05 15:27:15 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2013-07-05 15:27:15 +0000 |
commit | 631a5509c3ef08807720b1837d5d01b5bd6a5f1a (patch) | |
tree | 4ce18a22def35fbbf2d89894ee0504a9bbe97e1f | |
parent | f5b03bf9816ac419cf655eacd37b3708a312b7ff (diff) |
Add pane_synchronized format, from Romain Francoise.
-rw-r--r-- | usr.bin/tmux/format.c | 4 | ||||
-rw-r--r-- | usr.bin/tmux/tmux.1 | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/tmux/format.c b/usr.bin/tmux/format.c index f979224a133..4a7d5efb4d9 100644 --- a/usr.bin/tmux/format.c +++ b/usr.bin/tmux/format.c @@ -1,4 +1,4 @@ -/* $OpenBSD: format.c,v 1.25 2013/05/31 19:46:42 nicm Exp $ */ +/* $OpenBSD: format.c,v 1.26 2013/07/05 15:27:14 nicm Exp $ */ /* * Copyright (c) 2011 Nicholas Marriott <nicm@users.sourceforge.net> @@ -460,6 +460,8 @@ format_window_pane(struct format_tree *ft, struct window_pane *wp) format_add(ft, "pane_dead", "%d", wp->fd == -1); format_add(ft, "pane_in_mode", "%d", wp->screen != &wp->base); + format_add(ft, "pane_synchronized", "%d", + !!options_get_number(&wp->window->options, "synchronize-panes")); if (wp->tty != NULL) format_add(ft, "pane_tty", "%s", wp->tty); diff --git a/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1 index 1c05808e47b..a632f1b4ac6 100644 --- a/usr.bin/tmux/tmux.1 +++ b/usr.bin/tmux/tmux.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: tmux.1,v 1.362 2013/06/23 13:10:47 nicm Exp $ +.\" $OpenBSD: tmux.1,v 1.363 2013/07/05 15:27:14 nicm Exp $ .\" .\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> .\" @@ -14,7 +14,7 @@ .\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING .\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: June 23 2013 $ +.Dd $Mdocdate: July 5 2013 $ .Dt TMUX 1 .Os .Sh NAME @@ -3068,6 +3068,7 @@ The following variables are available, where appropriate: .It Li "pane_height" Ta "" Ta "Height of pane" .It Li "pane_id" Ta "#D" Ta "Unique pane ID" .It Li "pane_in_mode" Ta "" Ta "If pane is in a mode" +.It Li "pane_synchronized" Ta "" Ta "If pane is synchronized" .It Li "pane_index" Ta "#P" Ta "Index of pane" .It Li "pane_pid" Ta "" Ta "PID of first process in pane" .It Li "pane_start_command" Ta "" Ta "Command pane started with" |