Path: utzoo!attcan!uunet!apctrc!gpss36!zjmw36 From: zjmw36@gpss36.trc.amoco.com (Joe M. Wade) Newsgroups: comp.windows.x Subject: Re: Title bar flicker fix for XTerm Keywords: XTerm patch flicker title bar Message-ID: <2127@apctrc.UUCP> Date: 8 Oct 90 13:06:46 GMT References: <6459@vanuata.cs.glasgow.ac.uk> <28434@pasteur.Berkeley.EDU> <1990Oct3.011511.2263@mlb.semi.harris.com> <28459@pasteur.Berkeley.EDU> Sender: news@trc.amoco.com Reply-To: zjmw36@gpss36.trc.amoco.com (Joe M. Wade) Organization: Amoco Production Company, Tulsa Research Center Lines: 29 In article <28459@pasteur.Berkeley.EDU>, stolcke@ICSI.Berkeley.EDU (Andreas Stolcke) writes: |> In article <1990Oct3.011511.2263@mlb.semi.harris.com>, geg@beep.mlb.semi.harris.com (Greg Garland) writes: |> |> Better call it something besides 'cd', though, like 'xcd'. I called it 'cd' |> |> originally, but I noticed that when I ran sunview (to use some non-X stuff) |> |> the escape sequences seem to cause the SunView 'shelltool's to hang. |> |> |> The alias command can easily be made conditional on the terminal type, |> e.g. |> |> if ($term == xterm) alias cd .... |> |> A suntool window has $term == sun, so it won't be affected. |> |> -- There's an easier way. I alias cd to do the directory change and call a shell script which performs the appropriate actions for both shelltools and xterms based on whether the WINDOWID variable is set (there are other things you could check). This way it works for both environments. * * * * * * * * * * * * * * * * * * * * * * * Joe M. Wade (jwade@trc.amoco.com) (918) 660-4387 * * Amoco Research Center * 4502 E. 41st St. * Tulsa, OK 74102 * * * * * * * * * * * * * * * * * * * * * * *