Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

io.github.libtmux.CaptureSpec.CaptureSpec

Java
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
io.github.libtmux.CaptureSpec
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/CaptureSpec.java
class io.github.libtmux.CaptureSpec.CaptureSpec
classreadonly [source]
classreadonly [source]
class io.github.libtmux.CaptureSpec.CaptureSpec

What part of a pane to read, and how.

The shape SplitSpec uses. A plain Pane#capture() reads what is on screen; this is how to reach the scrollback above it, or to keep what tmux otherwise strips.

Lines are numbered from the top of the visible area, so 0 is the first row on screen and negatives climb into the history. fromStartOfHistory() is the whole of what tmux kept.

Examples

List<String> everything = pane.capture(c -> c.fromStartOfHistory());
List<String> lastTen = pane.capture(c -> c.from(-10));

3 declared, 0 inherited

Members

  • argv method The command that reads the pane.
  • builder method A builder that reads what is on screen and nothing else.
  • Builder class Collects the choices, each named for what it does rather than for the flag it sets.
Esc

Type to search.