input namespace
Classes
- class InputModeGuard
- RAII guard that puts stdin into the raw input mode used by the TUI.
- struct KeyEvent
- One decoded keyboard input event.
- struct Modifiers
- Modifier set decoded from terminal keyboard protocols.
- class Parser
- Incremental parser for terminal keyboard input bytes.
Enums
- enum class EventType { press, repeat, release }
- Key event phase. Terminals that do not report releases use
press. - enum class Key { unknown, character, enter, tab, backspace, escape, insert, delete_, left, right, up, down, home, end, page_up, page_down, begin, f1, f2, f3, f4, f5, f6, f7, f8, f9, f10, f11, f12 }
- Normalized key identity after terminal escape-sequence decoding.
Enum documentation
enum class nxt:: input:: EventType
#include <nxtio/input.hpp>
Key event phase. Terminals that do not report releases use press.
enum class nxt:: input:: Key
#include <nxtio/input.hpp>
Normalized key identity after terminal escape-sequence decoding.