summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2014-10-25 08:47:05 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2014-10-25 08:47:05 +0000
commitfdf31a071ea1398e4a4515a01aaf004e6d1b923f (patch)
treee517dbf9f5fe6e051b007b733976ab71278c13be /usr.bin/tmux
parent2a87b6c75404540678d1ddc23349f35456fdb2cd (diff)
Add pane_input_off format, from Anish R Athalye.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/format.c3
-rw-r--r--usr.bin/tmux/tmux.15
2 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/tmux/format.c b/usr.bin/tmux/format.c
index 26ccfed8955..64de3206cc5 100644
--- a/usr.bin/tmux/format.c
+++ b/usr.bin/tmux/format.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: format.c,v 1.50 2014/10/08 17:35:58 nicm Exp $ */
+/* $OpenBSD: format.c,v 1.51 2014/10/25 08:47:04 nicm Exp $ */
/*
* Copyright (c) 2011 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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/usr.bin/tmux/tmux.1 b/usr.bin/tmux/tmux.1
index 9189e47ed77..252bcff09a7 100644
--- a/usr.bin/tmux/tmux.1
+++ b/usr.bin/tmux/tmux.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: tmux.1,v 1.403 2014/10/18 20:28:19 nicm Exp $
+.\" $OpenBSD: tmux.1,v 1.404 2014/10/25 08:47:04 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: October 18 2014 $
+.Dd $Mdocdate: October 25 2014 $
.Dt TMUX 1
.Os
.Sh NAME
@@ -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"