How to restore terminal after curses program crashes?
uunet!bria!mike
uunet!bria!mike
Mon Feb 18 10:42:57 AEST 1991
In an article, kramden.acf.nyu.edu!brnstnd (Dan Bernstein) writes:
|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.
True enough. That's what I get for falling asleep at the wheel.
Sorry for any confusion.
Cheers,
--
Michael Stefanik, MGI Inc., Los Angeles| Opinions stated are not even my own.
Title of the week: Systems Engineer | UUCP: ...!uunet!bria!mike
-------------------------------------------------------------------------------
Remember folks: If you can't flame MS-DOS, then what _can_ you flame?
More information about the Comp.unix.programmer
mailing list