Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!udel!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.unix.questions Subject: Re: How to restore terminal after curses program crashes? Message-ID: <15216@smoke.brl.mil> Date: 15 Feb 91 19:36:16 GMT References: <1991Feb13.133332.22320@ousrvr.oulu.fi> <436@bria> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 7 In article <436@bria> uunet!bria!mike writes: > stty -g >$HOME/.stty I also recommend this technique (assuming that stty -g is supported on your system). It is the shell script equivalent of saving a struct termio obtained via TCGETA and later restoring it via TSETAW in a C program.