summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-03-28 20:17:39 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-03-28 20:17:39 +0000
commit82e0165c49b85ab95663d677fc7d0249b2a4efae (patch)
tree19dbeb53e789a9588705e0cf8102cda72d36e651 /tmux.1
parentfa6abac98d03891f4651ca6d23da11f20fa35ace (diff)
Allow a start and end line to be specified for capture-pane which may be
negative to capture part of the history. Prompted by request from Victor J Orlikowski.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.19
1 files changed, 9 insertions, 0 deletions
diff --git a/tmux.1 b/tmux.1
index d69321dd..bbd8a80e 100644
--- a/tmux.1
+++ b/tmux.1
@@ -953,11 +953,20 @@ If
is given, the new window does not become the current window.
.It Xo Ic capture-pane
.Op Fl b Ar buffer-index
+.Op Fl E Ar end-line
+.Op Fl S Ar start-line
.Op Fl t Ar target-pane
.Xc
.D1 (alias: Ic capturep )
Capture the contents of a pane to the specified buffer, or a new buffer if none
is specified.
+.Pp
+.Fl S
+and
+.Fl E
+specify the starting and ending line numbers, zero is the first line of the
+visible pane and negative numbers are lines in the history.
+The default is to capture only the visible contents of the pane.
.It Xo
.Ic choose-client
.Op Fl t Ar target-window