Unlimited learning, half price | 50% off
Get 50% off unlimited learning

rstudioapi (version 0.11)

terminalClear: Clear Terminal Buffer

Description

Clears the buffer for specified terminal.

Usage

terminalClear(id)

Arguments

id

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

Examples

Run this code
# NOT RUN {
termId <- rstudioapi::terminalCreate()
rstudioapi::terminalSend(termId, 'ls -l\n')
Sys.sleep(3)
rstudioapi::terminalClear(termId)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab