45using Key = std::variant<char, Special>;
Core type definitions shared across all TUI components.
Special
Non-printable / control keys recognised by the input reader.
Definition Defs.hpp:25
@ Escape
Escape key or unrecognised escape sequence.
@ Down
Down arrow (ESC [ B).
@ Tab
Horizontal tab (\t).
@ Right
Right arrow (ESC [ D).
@ Left
Left arrow (ESC [ C).
@ Backspace
Backspace (0x7F) or Delete (0x08).
@ Enter
Return / Enter key (\r or \n).
std::variant< char, Special > Key
A single keypress from stdin, represented as either a printable character or a Special control key.
Definition Defs.hpp:45