Skip to main content

Module panic_hook

Module panic_hook 

Source

Structs§

TuiPanicGuard
A guard struct that automatically registers and unregisters TUI state with the panic hook system.

Functions§

drain_pending_terminal_input
Drains terminal input that arrived after the TUI stopped reading it.
ensure_raw_mode_disabled
Best-effort raw-mode release for post-TUI stdout postambles.
finish_deferred_raw_mode_restore
Finish a deferred raw-mode restore as the last act of a graceful exit.
init_panic_hook
Initialize the panic hook to restore terminal state on panic and provide better formatting.
print_error_report
Print an application error using color-eyre when enabled, otherwise fallback formatting.
restore_tui
Restore terminal to a usable state after a panic or error.
restore_tui_keep_raw_mode
Restore every escape-sequence mode but deliberately keep raw mode.
set_app_metadata
set_color_eyre_enabled
set_debug_mode
set_show_diagnostics