vtterm keys
What vtterm.keys.key_bytes returns for each key. Key codes are the
SDL-style codes of OmniPython’s keys module, and letters and symbols follow
a US layout.
Key |
Bytes |
|---|---|
A letter, digit or symbol |
The character; Shift and Caps Lock as on a US keyboard |
Ctrl + a letter |
The control code: Ctrl-A is |
Ctrl + Space, Ctrl + 2 |
|
Ctrl + |
|
Alt + a key |
|
Enter, keypad Enter |
|
Backspace |
|
Tab |
|
Escape |
|
Delete |
|
Insert |
|
Home, End |
|
Page Up, Page Down |
|
F1 to F4 |
|
Up, Down, Right, Left |
|
Other keys return None, and so does Ctrl with a key not listed.