Path: utzoo!attcan!uunet!mcsun!ukc!strath-cs!cs.glasgow.ac.uk!sinclair From: sinclair@cs.glasgow.ac.uk (Duncan Sinclair) Newsgroups: comp.windows.x Subject: Re: Title bar flicker fix for XTerm Keywords: XTerm patch flicker title bar Message-ID: <6462@vanuata.cs.glasgow.ac.uk> Date: 3 Oct 90 10:07:29 GMT References: <6459@vanuata.cs.glasgow.ac.uk> <28434@pasteur.Berkeley.EDU> Organization: Computing Sci, Glasgow Univ, Scotland Lines: 49 stolcke@ICSI.Berkeley.EDU (Andreas Stolcke) writes: >In article <6459@vanuata.cs.glasgow.ac.uk>, sinclair@cs.glasgow.ac.uk (Duncan Sinclair) writes: >|> 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. >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). Show me a way to make it work in this scenario: Say I have two suns called `midway' and `vanuata'. I am running an xterm on midway, and so have, say, the title bar: "midway:/usr/X11/src/local/tvtwm" In /usr/hosts there are links from midway & vanuata to /usr/ucb/rsh. This allows me to type `vanuata' to rlogin onto it. Once I reach vanuata, the title bar becomes: "vanuata:/users/grad/sinclair" I run a few commands, then logoff, returning to midway. In my system I now have the correct title bar, in other systems I don't. I did use the alias method before, but I'm too much of a perfectionist, and I just wasn't happy with it. I could create my own equivalent `/usr/hosts', with a ton of shell scripts so that the title would be reset automatically, but that would be too much hassle for such a little thing. Instead I use tcsh's "precmd" alias, and put a small hack into xterm which can be useful either way. Duncan S. -- Duncan Sinclair | Try one sinclair@cs.glasgow.ac.uk Computing Science Research Student | of these: sinclair@uk.ac.glasgow.cs University of Glasgow |..!mcsun!ukc!uk.ac.glasgow.cs!sinclair Quote: "It takes a smart man to know when he's stupid." -- Barney Rubble