Function bottom::panic_hook

source ·
pub fn panic_hook(panic_info: &PanicInfo<'_>)
Expand description

A panic hook to properly restore the terminal in the case of a panic. Originally based on spotify-tui’s implementation.