terminalClear: Clear Terminal Buffer

Description Usage Arguments Note Examples

View source: R/terminal.R

Description

Clears the buffer for specified terminal.

Usage

1

Arguments

id

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

Note

The terminalClear function was added in version 1.1.350 of RStudio.

Examples

1
2
3
4
5
6
7
## Not run: 
termId <- rstudioapi::terminalCreate()
rstudioapi::terminalSend(termId, 'ls -l\n')
Sys.sleep(3)
rstudioapi::terminalClear(termId)

## End(Not run)

rstudio/rstudioapi documentation built on Feb. 16, 2019, 5:42 a.m.