I wrote an app using Rust\'s ncurses crate, and the issue is that on some terminals, such as the linux term, the terminal state isn\'t being restored to the state prior to r