Send Input to a tmux Pane¶
Find the target pane's ID, using one of the following methods:
- Ctrl+b,
:display '#{pane_id}' tmux run 'echo #{pane_id}'
tmux send -t '${pane_id}' "${keys}" There can be multiple ${keys} arguments.
- If a key argument is recognised as a key name, then that will be sent.
- Use
-lto disable this and send the text literally.
- Use
- Values such as
C-care interpreted as Ctrl+C.- Use
C-jfor Return.
- Use
- Values such as
Escapeare interpreted as ESC.