mirror of
https://github.com/itsjunetime/tdf.git
synced 2026-06-01 23:51:46 -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> {
|
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);
|
||||||
}));
|
}));
|
||||||
|
|||||||
Reference in New Issue
Block a user