tui.get.raw_input
tui.get.raw_input
Prints the bytes the terminal sent for the last key or mouse press, with control characters in caret notation: ^[ is ESC, ^? is DEL, ^A is ctrl+a. Pointer motion is not recorded.
Notes
- Meant for debugging key names:
^[[55;4uisalt+shift+7as a kitty-style sequence,^[7isalt+7. The Debug > Feature lab shows it under “last input”. - The paste, focus and resize events are not recorded.
Example
tui.capture raw tui.get.raw_input
