Structs§
- Terminal
Guard - RAII guard that restores the terminal on drop.
Lives on the stack in
cmd_run; cleanup fires even on panic or early exit.
Functions§
- clear
- disable_
raw_ mode - enable_
raw_ mode - flush
- hide_
cursor - move_to
- print_
at_ cursor - read_
key - Non-blocking key read. Returns
Noneif no key is available. - reset_
color - restore_
terminal - Restore terminal state if raw mode is active. Call this from panic hooks or cleanup paths.
- set_
color - show_
cursor - size