terminalBuffer: Get Terminal Buffer

View source: R/terminal.R

terminalBufferR Documentation

Get Terminal Buffer

Description

Returns contents of a terminal buffer.

Usage

terminalBuffer(id, stripAnsi = TRUE)

Arguments

id

The terminal id. The id is obtained from terminalList(), terminalVisible(), terminalCreate(), or terminalExecute().

stripAnsi

If FALSE, don't strip out Ansi escape sequences before returning terminal buffer.

Value

The terminal contents, one line per row.

Note

The terminalBuffer function was added in version 1.1.350 of RStudio.


rstudioapi documentation built on Oct. 23, 2024, 1:07 a.m.