Pane.sendKeys
Send keys to this pane, following them with Enter unless told not to.
Source and package
-
Examples#
await pane.sendKeys("echo hello");await pane.sendKeys("C-c", { literal: false });
tmux command#
The tmux commands behind sendKeys.
tmux C API#
The C declarations in tmux that implement these commands.
Guides#
Pages that discuss sendKeys.
- Concepts
- Guides
- Topics
In other ports#
Send keystrokes to a pane
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Rust | pane |
| Go | tmux |
| Java | no direct equivalent; Pane.paste writes a buffer instead |
| Kotlin | io |
| Scala | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
No equivalent is recorded in PowerShell, Julia, Elixir or F#.