tmux capturep

Capture the contents of a pane to a buffer

Options

NameDescription
-aUse the alternate screen and history is not accessible
-eInclude escape sequences for text and background attributes
-pRedirect output to stdout
-PCapture only outputs that is the beginning of an as-yet incomplete escape sequence
-qDo not throw an error if not alternate screen is found
-CEscape non-printable characters as octal
-JPreserve trailing spaces and join any wrapped lines
-NPreserve trailing spaces at each line's end
-b <buffer-name>The buffer name
-E <end-line>Ending line number
-S <start-line>Starting line number
-t <src-pane>The target pane