From 428b51e03187f13ccaf1451fb89d53848facab6d Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 25 Oct 2014 08:47:04 +0000 Subject: [PATCH] Add pane_input_off format, from Anish R Athalye. --- format.c | 1 + tmux.1 | 1 + 2 files changed, 2 insertions(+) diff --git a/format.c b/format.c index b5e51494..441e61be 100644 --- a/format.c +++ b/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); diff --git a/tmux.1 b/tmux.1 index 0c738f3e..9b853a1f 100644 --- a/tmux.1 +++ b/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"