[techtalk] dynamic xterm titlebar?
ktb
x.y.f at home.com
Mon Feb 26 13:49:19 EST 2001
On Mon, Feb 26, 2001 at 09:44:55AM -0800, Dennis Wheeler wrote:
>
> Is there some series of commands I can enter at a shell prompt to
> dynamically change the title bar of an XTerm session?
>
> I already know the basics of how to change the titlebar as described in
> the bash-how-to, and have experimented with various changes in my
> /etc/bashrc file, including getting the titlebar to dynamically display
> the last few folder names of my current working directory. But I
> can't............
>
> !@#$% I didn't even finish typing and I've already solved my own
> problem.
>
> /etc/bashrc
> TITLEBAR='\[\033]0;\$(echo \$PROJ)\007\]'
> PS1="${TITLEBAR}[\u@\h \W]\\$ "
>
>
> now I can export PROJ to any new value at any time and dynamically
> change my XTerm titlebar.
>
> -- d
> ps - I sent my question (and answer) anyway, more for my own records.
>
There is also the -
http://www.linuxdoc.org/HOWTO/Bash-Prompt-HOWTO.html
if you didn't know.
kent
--
From seeing and seeing the seeing has become so exhausted
First line of "The Panther" - R. M. Rilke
More information about the Techtalk
mailing list