nxt::input::InputModeGuard class

RAII guard that puts stdin into the raw input mode used by the TUI.

Constructors, destructors, conversion operators

InputModeGuard()
Enter raw mode when possible.
InputModeGuard(const InputModeGuard&) deleted
~InputModeGuard()
Restore the original terminal mode.

Public functions

auto enabled() const →  bool noexcept
True when raw mode was successfully enabled.
auto operator=(const InputModeGuard&) →  InputModeGuard& deleted