Module panic_handler

Module panic_handler 

Source
Expand description

Global panic handler for graceful TUI recovery

This module provides a panic handler that ensures the terminal is restored to a usable state when a panic occurs, and optionally logs panic information.

Structs§

TuiGuard
Create a guard that automatically sets TUI active/inactive

Functions§

install
Install a panic handler that will restore the terminal on panic
install_with_cleanup
Install a panic handler with a custom cleanup function
set_tui_active
Mark that the TUI is active