Server.send_keys
send_keys(pane => Pane|pane_id, keys => arrayref).
Source and package
-
Description#
Send the array's named keys in order to a
LibTmux::Pane. tmux interprets key names; arguments beginning with a dash remain key operands. An empty array sends no keys. Acceptance does not prove the pane application consumed input. Use"send_text"for literal text.Returns
undefafter command acceptance. Performs I/O; failures propagate throughLibTmux::X. Captured objects are not modified.$server->send_keys(pane => $pane, keys => ['Enter']);Methods#
tmux command#
The tmux commands behind send_keys.
display-message (daemon identity or target preflight) send-keys tmux C API#
The C declarations in tmux that implement these commands.
In other ports#
Send keystrokes to a pane
| Language | Equivalent |
|---|---|
| Python | libtmux |
| Ruby | Lib |
| Lua | libtmux |
| Erlang | tmux |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| Common Lisp | libtmux: |
| TypeScript | pane |
| Rust | pane |
| Go | tmux |
| Java | no direct equivalent; Pane.paste writes a buffer instead |
| Clojure | libtmux |
| Kotlin | io |
| Scala | io |
| C# | Lib |
| C++ | libtmux:: |
| Swift | Server |
| OCaml | Libtmux |
No equivalent is recorded in PowerShell, Julia, Elixir or F#.