mirror of
https://github.com/tmux/tmux.git
synced 2024-11-16 09:28:51 +00:00
Add pane_synchronized format, from Romain Francoise.
This commit is contained in:
parent
a96a8a1aab
commit
f5b041e394
2
format.c
2
format.c
@ -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_dead", "%d", wp->fd == -1);
|
||||||
|
|
||||||
format_add(ft, "pane_in_mode", "%d", wp->screen != &wp->base);
|
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)
|
if (wp->tty != NULL)
|
||||||
format_add(ft, "pane_tty", "%s", wp->tty);
|
format_add(ft, "pane_tty", "%s", wp->tty);
|
||||||
|
1
tmux.1
1
tmux.1
@ -3068,6 +3068,7 @@ The following variables are available, where appropriate:
|
|||||||
.It Li "pane_height" Ta "" Ta "Height of pane"
|
.It Li "pane_height" Ta "" Ta "Height of pane"
|
||||||
.It Li "pane_id" Ta "#D" Ta "Unique pane ID"
|
.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_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_index" Ta "#P" Ta "Index of pane"
|
||||||
.It Li "pane_pid" Ta "" Ta "PID of first process in pane"
|
.It Li "pane_pid" Ta "" Ta "PID of first process in pane"
|
||||||
.It Li "pane_start_command" Ta "" Ta "Command pane started with"
|
.It Li "pane_start_command" Ta "" Ta "Command pane started with"
|
||||||
|
Loading…
Reference in New Issue
Block a user