Clears the buffer for specified terminal.
Arguments
- id
The terminal id. The
idis obtained fromterminalList(),terminalVisible(),terminalCreate(), orterminalExecute().
Examples
if (FALSE) { # \dontrun{
termId <- rstudioapi::terminalCreate()
rstudioapi::terminalSend(termId, 'ls -l\n')
Sys.sleep(3)
rstudioapi::terminalClear(termId)
} # }