Path: utzoo!attcan!uunet!tut.cis.ohio-state.edu!quanta.eng.ohio-state.edu!icarus!kaul From: kaul@icarus.eng.ohio-state.edu (Rich Kaul) Newsgroups: comp.windows.x Subject: Re: Title bar flicker fix for XTerm Message-ID: Date: 3 Oct 90 14:00:33 GMT References: <6459@vanuata.cs.glasgow.ac.uk> Sender: news@quanta.eng.ohio-state.edu Organization: Ohio State University Electrical Engineering Lines: 31 Nntp-Posting-Host: icarus In-reply-to: sinclair@cs.glasgow.ac.uk's message of 2 Oct 90 13:03:48 GMT Originator: kaul@icarus.eng.ohio-state.edu In article <6459@vanuata.cs.glasgow.ac.uk> sinclair@cs.glasgow.ac.uk (Duncan Sinclair) writes: Here's a small patch for xterm. 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. This may be a nit, but what is wrong with cwdcmd in tcsh? It does what you want with a minimum of fuss and without messing with the xterm source. When I ran tcsh I used the following for my xterms and never got that annoying flicker. (Note that the ^[ are real escapes, and the ^G and ^A are real control characters.) # # Prompting information for tcsh. # if ($?DISPLAY) then # X Windows Prompt alias cwdcmd 'echo -n "^[]0;"{$HOST}":$cwd^G"' echo -n "^[]0;"{$HOST}":$cwd^G" set prompt="%h> " # Suntools Prompting else if ($?WINDOW_PARENT || ($TERM == "sun" && `tty` != "/dev/console")) then alias cwdcmd 'echo -n "^[]l"{$HOST}": $cwd^[\^A"' echo -n ^[\]l"$HOST": $cwd^[\\ set prompt="%h> " else # Everything else set prompt={$HOST}":%~> " endif -- Rich Kaul | It wouldn't be research if we kaul@icarus.eng.ohio-state.edu | knew what we were doing.