nxt::ansi::TerminalGuard struct

RAII guard that hides cursor on construction, restores terminal state on destruction. Resets scroll region, shows cursor, clears screen.

Constructors, destructors, conversion operators

TerminalGuard()
Enter application-friendly terminal state.
TerminalGuard(const TerminalGuard&) deleted
~TerminalGuard()
Restore cursor, scroll region, and screen state.

Public functions

auto operator=(const TerminalGuard&) →  TerminalGuard& deleted