reflecting names of running applications in terminal-names

Bartosch Pixa dante at microdiscovery.de
Wed Sep 4 17:11:14 CEST 2002


On Wed, 2002-09-04 at 13:53, Joe Klemmer wrote:
> On Wed, 2002-09-04 at 03:08, David Wijnants wrote:
> 
> > I tried this shell script version of the same thing:
> > 
> >   #!/bin/sh
> >   # changes the terminal title
> >   printf "\x1b]0;$1\007"
> > 
> > Works fine with rxvt, but not with xterm =(
> 
> 	I remember reading something about a million years ago in Linux Gazette
> on how to do this but I can't remember what I had for lunch yesterday
> so...
> 

try this one:

xtitle ()
{
echo -n -e "\033]0;$*\007"
}

always worked for me, and in case i want it automatic i simply put
xtitle() in $PS1

hope that helps :)


Bartosch




More information about the Xfce mailing list