It needs to be a single “key stroke”.
The basic set of recognized keys includes
- the ASCII characters (including the C0 control characters),
- the function keys:
- the movement keys:
- the editing keys:
DC (Delete), and
- the keypad keys:
Not all terminals support sending unique sequences for all those keys; also, not all of those keys are described in every terminfo entry (indicated by the TERM environment variable when attaching to a tmux session). So, some of them might not be available in your particular setup.
If an Escape character precedes the sequence for one of the above keys, then it will be treated as a Meta modifier. This is represented as a
M- prefix when naming the key (e.g.
tmux also recognizes some special sequences that xterm can send when Shift, Control, and Meta are used with most of the non-ASCII keys (e.g.
S-C-M-Up), but many terminals do not generate these sequences (or only support a limited set of modifiers for just the arrow keys).