castty
castty copied to clipboard
Reset terminal based on termcap entry
Restoring the terminal with just tcsetattr and TIOCSWINWZ seems to still leave the terminal in a weird state. Instead, I think we really need to read the termcap entry for the terminal we're using and restore based on that.