How to restore terminal after curses program crashes?

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Sat Feb 16 07:38:15 AEST 1991


In article <436 at bria> uunet!bria!mike writes:
> When your terminal is in a good mood, enter the following command:
> 	stty -g >$HOME/.stty

That's System V-specific, unfortunately.

A BSD solution is to run ``pty foo'' instead of ``foo'' so that whenever
foo exits (or stops) the tty modes will be restored properly with no
further effort on your part.

---Dan



More information about the Comp.unix.programmer mailing list