Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

Go API

Go documentation

View as Markdown

Module
tmux
Declared in
Pane
Package
github.com/libtmux/libtmux-go/tmux
Source
tmux/pane_input.go
Other languages
PythonRubyLuaTypeScriptRust Java .NETC++Swift
SendKeys ( ctx : context.Context , request : SendKeysRequest ) → error
method [source]
method [source]
SendKeys

SendKeys invokes tmux send-keys with the receiver's exact linked session-window-pane target. This is tmux key input, not shell execution: Literal only changes tmux key parsing, and any delivered text may still be interpreted by the pane's application. KeyName routes through a client's key table instead of delivering to the pane.

KeyName and TargetClient require tmux 3.4 and follow UnsupportedPolicy .

A completed nonzero exit or stderr, from either the Command send or the separate Enter, becomes a redacted CommandError : Command may carry a caller's secret, so only tmux's exit code is retained. Transport and context errors are delivery-ambiguous, including between Command and Enter.

In other ports Send keystrokes to a pane

0 declared, 0 inherited

Esc

Type to search.