[RHCE] xterm title bar

John F Davis rhce@trilug.org
Fri, 23 Aug 2002 10:22:10 -0400


Hello

I thoughly enjoyed the X11 talk.  I'm still waitng for the xterm prompt tip
in PS1 to make it to this list..

While we are waiting, here is a script I use to something similar.

#title.sh
echo -ne "\033]0; $1 \007"

I use it like this: title.sh build
and it will set the title bar of the current xterm to build
and in a different xterm title.sh debug and it sets the title to debug.

Thus, its easier to pick your window when you have a bunch of icons to
choose from.

Also, there is a way to do this automatically in your PS1 prompt, so you
can move about the filesytem and it updates your
title bar based upon your path. (That's what we are waiting for right?)
Once we get the PS1 script to do this, I am sure it
can be modified to prepend it with some info set by a script.

ie. Build: ~/sandbox/v0802/src and
Debug: ~/sandbox/v0802/exe

yada yada yada

JD