How to restore terminal after curses program crashes?

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Mon Feb 18 01:55:35 AEST 1991


In article <449 at bria> uunet!bria!mike writes:
> In an article, gtisqr.uucp!roger (Roger Droz) writes:
> >How about simply:
> >	stty="stty `stty -g`"
> This won't work, because the ``stty -g'' will simply set the terminal to what
> it was already set to.

Double-quotes force immediate ` and $ interpretation.

> You need to preserve the terminal state _prior_ to
> it going insane.

He is.

---Dan



More information about the Comp.unix.programmer mailing list