ncursesw
pub fn savetty() -> Result<(), NCurseswError>
Save the current state of the terminal modes in a buffer, usable by resetty().
resetty()