mirror of
https://github.com/tmux/tmux.git
synced 2025-01-14 12:48:56 +00:00
Add pane_input_off format, from Anish R Athalye.
This commit is contained in:
parent
abfb9656ef
commit
428b51e031
1
format.c
1
format.c
@ -554,6 +554,7 @@ format_window_pane(struct format_tree *ft, struct window_pane *wp)
|
||||
format_add(ft, "pane_id", "%%%u", wp->id);
|
||||
format_add(ft, "pane_active", "%d", wp == wp->window->active);
|
||||
format_add(ft, "pane_dead", "%d", wp->fd == -1);
|
||||
format_add(ft, "pane_input_off", "%d", !!(wp->flags & PANE_INPUTOFF));
|
||||
|
||||
if (window_pane_visible(wp)) {
|
||||
format_add(ft, "pane_left", "%u", wp->xoff);
|
||||
|
1
tmux.1
1
tmux.1
@ -3099,6 +3099,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_input_off" Ta "" Ta "If input to pane is disabled"
|
||||
.It Li "pane_index" Ta "#P" Ta "Index of pane"
|
||||
.It Li "pane_left" Ta "" Ta "Left of pane"
|
||||
.It Li "pane_pid" Ta "" Ta "PID of first process in pane"
|
||||
|
Loading…
Reference in New Issue
Block a user