# 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/c3517519ee799428a809ce6deb1708c8be289cd1/libtmux/src/main/java/io/github/libtmux/CaptureSpec.java#L114
- **Page:** https://libtmux.org/reference/java/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.
