Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!think.com!hsdndev!cmcl2!kramden.acf.nyu.edu!brnstnd From: brnstnd@kramden.acf.nyu.edu (Dan Bernstein) Newsgroups: comp.unix.programmer Subject: Re: How to restore terminal after curses program crashes? Message-ID: <28768:Feb1714:55:3591@kramden.acf.nyu.edu> Date: 17 Feb 91 14:55:35 GMT References: <1991Feb15.214221.11464@gtisqr.uucp> <449@bria> Organization: IR Lines: 15 In article <449@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