mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-06-02 08:01:47 -04:00
Fix panic messages being printed in raw mode (#118)
This commit is contained in:
@@ -73,6 +73,7 @@ async fn main() -> Result<(), WrappedErr> {
|
||||
async fn inner_main() -> Result<(), WrappedErr> {
|
||||
let hook = std::panic::take_hook();
|
||||
std::panic::set_hook(Box::new(move |info| {
|
||||
_ = disable_raw_mode();
|
||||
reset_term();
|
||||
hook(info);
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user