Send text to an existing terminal.
Arguments
- id
The terminal id. The
idis obtained fromterminalList(),terminalVisible(),terminalCreate(), orterminalExecute().- text
Character vector containing text to be inserted.
Examples
if (FALSE) { # \dontrun{
termId <- rstudioapi::terminalCreate()
rstudioapi::terminalSend(termId, 'ls -l\n')
} # }