The code changes on this PR will add a panic hook, so if a problem happens and the program panics, before the program closes it will run the code inside the panic hook that will leave alternate screen and disable raw mode. This way, you won't have your terminal messed up if an unexpected error happens.
Describe alternatives you've considered
None.
Additional context
The implementation might be the same as the linked pull request above.
Is your feature request related to a problem? Please describe.
When an unexpected error happens, the terminal is messed up.
Describe the solution you'd like
Add a custom panic hook. See: https://github.com/ratatui-org/rust-tui-template/pull/13
Describe alternatives you've considered
None.
Additional context
The implementation might be the same as the linked pull request above.