tmuxr (version 0.1.0)

capture_pane: Capture contents of a pane.

Description

Capture contents of a pane.

Usage

capture_pane(target, start = NULL, end = NULL, trim = FALSE,
  trim_top = trim, trim_bottom = trim, strip_lonely_prompt = TRUE,
  as_message = FALSE, in_viewer = FALSE)

Arguments

target

A session, window, or pane.

start

Numeric. First line to capture.

end

Numeric. Last line to capture.

trim

Logical. Should empty lines be removed from the top and bottom?

trim_top

Logical. Should empty lines be removed from the top?

trim_bottom

Logical. Should empty lines be removed from the bottom?

strip_lonely_prompt

Logical. Should lines containing only the prompt be removed?

as_message

Logical. Should the contents be displayed as a message?

in_viewer

Logical. Should the contents be displayed in the viewer?