Elizabeth Schwartz <eschwart_at_genuity.net> writes:
> When I open an xterm, I am explicitly specifying Title and name with xterm
> -T host1 -n host1
>
> If I ssh to another host from that xterm, after some seemingly random
> interval, the xterm title and name are changing to the name of the new
> host. Or, worse, sometimes just to "${HOST}" (minus the quotation marks)
>
> What causes this behavior, and HTH can I turn it OFF? If I name a window
> "host1" I want it to stay named "host1" no matter *what* I do inside the
> window.
>
> Is this an fvwm thing or an xterm thing?
Its an xterm thing.
By printing an escape sequence within the xterm you can change the
title of the xterm.
For example, I use ksh. I export ENV=$HOME/.kshrc.
In my .kshrc I have:
set -o trackall
set -o ignoreeof
set -o nolog
case $- in
*i*) #interactive ksh
function shdr { # changes screen title
print -n '\033]2;'$*'\07'
}
function chdir { # fancy change directory...
'cd' $*
case $TERM in
*xterm*|ansi|rxvt)
# shdr "$USER _at_ $SYSID -- $PWD"
shdr "$SYSID -- $PWD"
PS1="`colorcyan`$sysid`colormagenta`>`colorreset` "
;;
linux)
PS1="`colorcyan`$sysid`coloryellow`>`colorreset` "
;;
;;
esac
}
alias cd=chdir
;;
esac
This makes any "cd" change the title of the xterm.
Look for something similar in your setup.
--
Dan Espen
444 Hoes Lane Room RRC 1C-214 E-mail: dane_at_mk.telcordia.com
Piscataway, NJ 08854 Phone: (732) 699-5570
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Tue Jan 16 2001 - 14:46:15 GMT