aboutsummaryrefslogtreecommitdiff
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-11-24 19:16:11 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-11-24 19:16:11 +0000
commit87821fce0e3f8d55657fdc4fba39cc1186e2ed3c (patch)
tree9f0cf5fcd40a036dd1de7c5a129842334f67e7dc /tmux.1
parentfce47e2e6368055e8fdebcfe95a920d953d2f09c (diff)
downloadrtmux-87821fce0e3f8d55657fdc4fba39cc1186e2ed3c.tar.gz
rtmux-87821fce0e3f8d55657fdc4fba39cc1186e2ed3c.tar.bz2
rtmux-87821fce0e3f8d55657fdc4fba39cc1186e2ed3c.zip
Add a -p flag to display-message to print the output rather than displaying in
the status line, this allows things like "display -p '#W'" to find the current window index.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.18
1 files changed, 7 insertions, 1 deletions
diff --git a/tmux.1 b/tmux.1
index 9183b351..d3c61bd7 100644
--- a/tmux.1
+++ b/tmux.1
@@ -2011,11 +2011,17 @@ Ask for confirmation before executing
This command works only from inside
.Nm .
.It Xo Ic display-message
+.Op Fl p
.Op Fl t Ar target-client
.Op Ar message
.Xc
.D1 (alias: Ic display )
-Display a message in the status line.
+Display a message.
+If
+.Fl p
+is given, the output is printed to stdout, otherwise it is displayed in the
+.Ar target-client
+status line.
The format of
.Ar message
is as for