Path: utzoo!attcan!uunet!cs.utexas.edu!sun-barr!olivea!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!unido!pcsbst!dude!me From: me@dude.pcs.com (Michael Elbel) Newsgroups: comp.windows.x Subject: Re: Title bar flicker fix for XTerm Keywords: XTerm patch flicker title bar Message-ID: <900@pcsbst.pcs.com> Date: 4 Oct 90 08:48:45 GMT References: <6459@vanuata.cs.glasgow.ac.uk> <28434@pasteur.Berkeley.EDU> <1990Oct3.011511.2263@mlb.semi.harris.com> Sender: news@pcsbst.pcs.com Lines: 30 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. No need to do that, just make the aliasing conditional. Here's what I have in my .bashrc. if [ "(" "$TERM" = "xterm" ")" -o "(" "$TERM" = "xterm+" ")" ] ; then set_headline() { case "$PWD" in ${HOME}*) echo -n "\033]0;`expr $PWD : $HOME'\(.*\)'`\007" ;; *) echo -n "\033]0;${PWD}\007" ;; esac } cd() { builtin cd $*; set_headline; } pushd() { builtin pushd $*; set_headline; } popd() { builtin popd $*; set_headline; } pwd() { builtin pwd ; set_headline ; } set_headline fi Michael -- Michael Elbel | Wollen haetten wir schon moegen me@dude.PCS.COM | aber duerfen haben wir uns nicht getraut. | - Karl Valentin