send_keys | R Documentation |
Send keys to a tmux pane
send_keys(target = NULL, ..., literal = FALSE, count = 1L)
target |
A tmuxr_session, tmuxr_window, or tmuxr_pane. If |
... |
Strings. Keys to send. |
literal |
A logical. If |
count |
An integer. Number of times the keys are sent. Default: |
capture_pane()
## Not run:
s <- new_session(shell_command = "cat")
send_keys(s, "Speak", "Space", "friend")
send_keys(s, "BSpace", count = 6L)
send_keys(s, "mellon and ")
send_keys(s, "enter", "!", literal = TRUE)
send_keys(s, "enter", literal = FALSE)
capture_pane(s, start = 0L, end = 1L)
kill_session(s)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.