Skip to main content

Module terminal

Module terminal 

Source

Structs§

TerminalGuard
RAII guard that enables raw mode + (optionally) alt screen on construction and restores the terminal on drop (including during panic unwind).

Functions§

install_panic_hook
install_signal_flag
Returns a flag that becomes true on SIGTERM or SIGHUP.
restore_terminal_best_effort
Restore terminal manually (for panic hook). Idempotent and best-effort.