resetty, savetty - restore/save terminal modes
The routine saves the current state of the terminal modes in a buffer.
The routine restores the state of the terminal modes to what it was at
the last call to
The and functions return OK on success and ERR on error.