Xref: utzoo comp.unix.programmer:1134 comp.unix.questions:28859 Path: utzoo!mnetor!tmsoft!torsqnt!lethe!yunexus!ists!helios.physics.utoronto.ca!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!uupsi!jpradley!jpr From: jpr@jpradley.jpr.com (Jean-Pierre Radley) Newsgroups: comp.unix.programmer,comp.unix.questions Subject: Re: How to restore terminal after curses program crashes? Message-ID: <1991Feb19.035209.3224@jpradley.jpr.com> Date: 19 Feb 91 03:52:09 GMT References: <1991Feb16.032319.2676@jpradley.jpr.com> Organization: NYC Public Unix Lines: 29 In article Dan_Jacobson@ATT.COM writes: >>>>>> On 16 Feb 91 03:23:19 GMT, jpr@jpradley.jpr.com (Jean-Pierre Radley) said: > >J-P> In article Dan_Jacobson@ATT.COM writes: > >J-P> I do about the same thing, but with somewhat less effort. > >J-P> In .profile, >J-P> STTY=`stty-g` export STTY > >J-P> In .login, >J-P> setenv STTY `stty-g` > >J-P> Then, after a scrambled screen, >J-P> $stty^J >J-P> restores my prior settings. > >Yeah but, you omit any stty-ings you did before you captured them into >an environment variable---unless you're happy with the differing >defaults on different machines, e.g., "#"=erase. Plus, stty -g, and >certainly stty-g, aren't portable. Plus I invoke $stty in the >.profile too. Well, I thought one might have cleverly inferred, without my explicitly so stating, that before I set my STTY environment value in my .profile or .login, that _first_ I do all the specific settings for erase, intr, &c., that I desire. Jean-Pierre Radley NYC Public Unix jpr@jpradley.jpr.com CIS: 72160,1341