ConstOptionaloptions: Optional ReadonlyalternateScreen?: booleanUse the alternate screen instead of history (-a).
Optional ReadonlybufferName?: undefinedOptional ReadonlyendLine?: number | "-"Ending line: number, negative history offset, or "-" for visible end (-E).
Optional ReadonlyescapeNonPrintable?: booleanEscape non-printable characters as octal sequences (-C).
Optional ReadonlyescapeSequences?: booleanInclude escape sequences for text and background attributes (-e).
Optional ReadonlyjoinWrappedLines?: booleanJoin wrapped lines and preserve trailing spaces; implies trimEmpty (-J).
Optional ReadonlymodeScreen?: booleanCapture the screen for the active mode, if any (-M).
Optional ReadonlypendingEscapeSequence?: booleanCapture only the beginning of an incomplete escape sequence (-P).
Optional ReadonlypreserveTrailingSpaces?: booleanPreserve trailing spaces at each line's end (-N).
Optional Readonlyprint?: truePrint captured content to stdout instead of a tmux buffer (-p).
Optional Readonlyquiet?: booleanSuppress errors for unavailable alternate/mode screens (-q).
Optional ReadonlystartLine?: number | "-"Starting line: number, negative history offset, or "-" for history start (-S).
Optional ReadonlytargetPane?: stringTarget pane to capture (-t).
Optional ReadonlytrimEmpty?: booleanIgnore trailing positions that do not contain a character (-T).
Optional ReadonlyalternateScreen?: booleanUse the alternate screen instead of history (-a).
ReadonlybufferName: stringBuffer name to write when not printing to stdout (-b).
Optional ReadonlyendLine?: number | "-"Ending line: number, negative history offset, or "-" for visible end (-E).
Optional ReadonlyescapeNonPrintable?: booleanEscape non-printable characters as octal sequences (-C).
Optional ReadonlyescapeSequences?: booleanInclude escape sequences for text and background attributes (-e).
Optional ReadonlyjoinWrappedLines?: booleanJoin wrapped lines and preserve trailing spaces; implies trimEmpty (-J).
Optional ReadonlymodeScreen?: booleanCapture the screen for the active mode, if any (-M).
Optional ReadonlypendingEscapeSequence?: booleanCapture only the beginning of an incomplete escape sequence (-P).
Optional ReadonlypreserveTrailingSpaces?: booleanPreserve trailing spaces at each line's end (-N).
Optional Readonlyprint?: falseExplicitly do not print; write to bufferName instead (-p).
Optional Readonlyquiet?: booleanSuppress errors for unavailable alternate/mode screens (-q).
Optional ReadonlystartLine?: number | "-"Starting line: number, negative history offset, or "-" for history start (-S).
Optional ReadonlytargetPane?: stringTarget pane to capture (-t).
Optional ReadonlytrimEmpty?: booleanIgnore trailing positions that do not contain a character (-T).
The captured text when printed, otherwise an empty string.
Capture the contents of a tmux pane (
tmux capture-pane).