On this page
io.github.libtmux.CaptureSpec.CaptureSpec
- Module
- io.github.libtmux.CaptureSpec
- Package
- io.github.libtmux:libtmux
- Source
- libtmux/src/main/java/io/github/libtmux/CaptureSpec.java
-
What part of a pane to read, and how.
<p>The shape
SplitSpecuses. A plainPane#capture()reads what is on screen; this is how to reach the scrollback above it, or to keep what tmux otherwise strips.<p>Lines are numbered from the top of the visible area, so
0is the first row on screen and negatives climb into the history.fromStartOfHistory()is the whole of what tmux kept.<pre>
List<String> everything = pane.capture(c -> c.fromStartOfHistory()); List<String> lastTen = pane.capture(c -> c.from(-10));</pre>
3 declared, 0 inherited