How to restore terminal after curses program crashes?

Doug Gwyn gwyn at smoke.brl.mil
Sat Feb 16 06:36:16 AEST 1991


In article <436 at bria> uunet!bria!mike writes:
>	stty -g >$HOME/.stty

I also recommend this technique (assuming that stty -g is supported
on your system).  It is the shell script equivalent of saving a
struct termio obtained via TCGETA and later restoring it via TSETAW
in a C program.



More information about the Comp.unix.questions mailing list