When using the tmux
send-keys
command, these sequences can be used to control the cursor position or perform other special operations.
This reference is based on my own observations in
tmux
on Alpine Linux, as I could not find an actual reference for these.
Sequence | Description |
---|---|
C-; |
Send literal "C-" |
C-A |
Move cursor to home |
C-B |
Move cursor to the left |
C-C |
Send ^C escape |
C-D |
Delete forward |
C-E |
Move cursor to end |
C-F |
Move cursor forward |
C-H |
Backspace |
C-I |
Doesn't seem to do anything |
C-J |
Enter |
C-K |
Cut input right of the cursor |
C-M |
Enter |
C-N |
Doesn't seem to do anything |
C-O |
Enter |
C-P |
Move cursor to end |
C-Q |
Send ^Q escape |
C-R |
Search for text including scrollback history |
C-S |
Search for text in current view |
C-T |
Shift cursor character backward one position |
C-U |
Cut input left of the cursor |
C-V |
Send ^V escape |
C-W |
Cut input left of the cursor until next whitespace char |
C-X |
It has some kind of effect on the paste buffer??? |
C-Y |
Paste previously-copied/cut input |
C-Z |
Send ^Z escape |
tmux send-keys -t$mysession@mywindow 'C-E'
tmux send-keys -t$mysession@mywindow 'C-U'