# io.github.libtmux.CaptureSpec.CaptureSpec.Builder

- **Module:** io.github.libtmux.CaptureSpec.CaptureSpec
- **Package:** io.github.libtmux:libtmux
- **Language:** Java
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-java/blob/842228310449e879ebcaa3f910597757c9dbffd6/libtmux/src/main/java/io/github/libtmux/CaptureSpec.java#L122
- **Page:** https://libtmux.org/en/java/latest/reference/io-github-libtmux-capturespec-capturespec-builder-v00t/

Collects the choices, each named for what it does rather than for the flag it sets.

## Members

- `from` (method): Starts at a line, counted from the top of the visible area.
- `fromStartOfHistory` (method): Starts at the oldest line tmux still has.
- `to` (method): Ends at a line, counted the same way as {@link #from}.
- `toEndOfHistory` (method): Ends at the newest line, including anything below the visible area.
- `withEscapeSequences` (method): Keeps the escape sequences that colour and position the text.
- `escapingNonPrintable` (method): Writes anything unprintable as an octal escape rather than dropping it.
- `joiningWrappedLines` (method): Joins a line tmux wrapped back into the one line it was.
- `preservingTrailingSpace` (method): Keeps the spaces at the end of a line, which tmux otherwise drops.
- `trimmingTrailingSpace` (method): Drops trailing space and the empty lines below the content. Requires tmux 3.4.
- `fromAlternateScreen` (method): Reads the alternate screen, which is what a full-screen program draws on.
- `pendingOnly` (method): Reads only output tmux has not drawn yet.
- `fromModeScreen` (method): Reads what a mode is showing rather than the pane beneath it. Requires tmux 3.6.
- `withHyperlinks` (method): Keeps hyperlink markers. Requires tmux 3.7.
- `withLineNumbers` (method): Prefixes each line with its number. Requires tmux 3.7.
- `build` (method): The finished spec.
