Capture the contents of a tmux pane
capture_pane(
target = NULL,
start = NULL,
end = NULL,
escape = FALSE,
escape_control = FALSE,
join = FALSE,
cat = FALSE
)A tmuxr_session, tmuxr_window, or tmuxr_pane. If NULL,
the currently active pane is used. Default: NULL.
An integer or a dash (-). First and last lines to
capture. 0 is the first line of the visible pane and negative integers
are lines in the history. A dash (-) for start is the start of the
history and to end the end of the visible pane. The default is to
capture only the visible contents of the pane.
A logical. If TRUE, include escape sequences for text and
background attributes. Default: FALSE.
A logical. If TRUE, also escape control characters
as octal \xxx. Default: FALSE.
A logical. If TRUE, join wrapped lines and preserve trailing
spaces at each line. Default: FALSE.
A logical. If TRUE, concatenate lines into one string.
Default: FALSE.
A vector of strings or one string when cat is TRUE.