Path: utzoo!attcan!uunet!lll-winken!gauss.llnl.gov!casey From: casey@gauss.llnl.gov (Casey Leedom) Newsgroups: comp.windows.x Subject: Re: Title bar flicker fix for XTerm Keywords: XTerm patch flicker title bar Message-ID: <1990Oct2.192126@gauss.llnl.gov> Date: 3 Oct 90 02:21:26 GMT References: <6459@vanuata.cs.glasgow.ac.uk> <28434@pasteur.Berkeley.EDU> Sender: usenet@lll-winken.LLNL.GOV Reply-To: casey@gauss.llnl.gov (Casey Leedom) Organization: Lawrence Livermore National Laboratory Lines: 27 / From: sinclair@cs.glasgow.ac.uk (Duncan Sinclair) | | Using tcsh, I set re-set the title of xterm before each shell prompt, | so that it states my current working directory. This ensures that my \ title is up to date, no matter where I am, or what I'm doing. / From: stolcke@ICSI.Berkeley.EDU (Andreas Stolcke) | | May I suggest a different approach to the same end. Instead of | having the tcsh prompt string set the title bar on every command, | alias the `cd ' command so as to set it only when actually changing the | current directory. (This should work for any shell with something equivalent \ to an aliasing mechanism). Which doesn't work if you have, say, a super user shell that you keep suspended in the background for easy access to super user powers. If you only update the title with the current working directory when you do a ``cd'' then a suspend of the super user shell or a foregrounding of it won't set the prompt. I also used to include an update of the current working directory in my prompt string and was annoyed by the flicker. Nice patch if it works. I'll have to give it a shot. You should submit it to the regular xbugs address for inclusion in R5. Casey