Skip to main content

Module terminal

Module terminal 

Source

Structs§

TerminalGuard
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 None if 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