Title of tha Xfterm [4.0.6]
Oliver Lehmann
lehmann at ans-netz.de
Mon Nov 1 18:55:27 CET 2004
Rakotomandimby Mihamina wrote:
> Hello,
> I would like to know what's the possibilities to display the title of an
> xfterm4 on 4.0.6 release
>
> The perfect would be to have the pissibilty to display the "$hostname :
> $PWD" on some xfterms (those which remote ssh remote servers) and on
> some xfterms i would set a simple title ("foo" , "bar", "whatever" ...)
>
> Would you help me to find out ?
terminal emulator titles are set by printing an escape sequence.
put sth. like
printf "\033]2;%s%s\007\033]1;\007" $HOST :`pwd`
in the dot-file your shell starts up automaticly.
>From my .cshrc (but I guess you don't use tcsh)
if ($?DISPLAY || $TERM == xterm-color || $TERM == xterm) then
alias header 'printf "\033]2;%s%s\007\033]1;\007" $HOST
:`dirs`'
alias cd 'chdir \!* && header'
header
endif
--
Oliver Lehmann
http://www.pofo.de/
http://wishlist.ans-netz.de/
More information about the Xfce
mailing list