Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!rutgers!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: <15369:Feb1520:38:1591@kramden.acf.nyu.edu> Date: 15 Feb 91 20:38:15 GMT References: <1991Feb13.133332.22320@ousrvr.oulu.fi> <436@bria> Organization: IR Lines: 11 In article <436@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