Fix panic messages being printed in raw mode (#118)

This commit is contained in:
Max
2025-11-26 18:57:44 +01:00
committed by GitHub
parent 670251fdff
commit 74def1c0a8
+1
View File
@@ -73,6 +73,7 @@ async fn main() -> Result<(), WrappedErr> {
async fn inner_main() -> Result<(), WrappedErr> { async fn inner_main() -> Result<(), WrappedErr> {
let hook = std::panic::take_hook(); let hook = std::panic::take_hook();
std::panic::set_hook(Box::new(move |info| { std::panic::set_hook(Box::new(move |info| {
_ = disable_raw_mode();
reset_term(); reset_term();
hook(info); hook(info);
})); }));