OT: X terminal question

Heiko Berges hb-mlist+xfce at k6.bsls.de
Tue Oct 15 15:21:49 CEST 2002


On Tue, Oct 15, 2002 at 02:42:00PM +0200, wolfgang wrote:
> on FreeBSD (with bash as my login shell), X terminal windows do not show my 
> $USER@$HOSTNAME in the titlebar. when i start Eterm with Eterm -T 
> "$USER@$HOSTNAME", they show in the titlebar, but not on the xfce taskbar 

This is correct. Icon name (which shows up in the taskbar) is set with 
the  -n title  option.


> button. when i log in to a remote (redhat linux) host via ssh in one of those 
> terminals, the remote $USER@$HOSTNAME show plus the xfce taskbar button also 
> changes and shows them. when i quit ssh, the remote info stays in the 
> titlebar and xfce taskbar button although i am not logged in remotely 
> anymore.

I assume a login-script (profile, basrc, whatever...) on the remote host 
sets the title with an escape sequence.


> i assume i need to set some environment variables for the local info to also 
> show. would anyone know how to achieve that?

We discussed this about a month ago. If you use bash you can use 

    [ "X$TERM" == "Xxterm" ] && echo -n "`tput tsl` TITLE HERE `tput fsl`"

(replace xterm with whatever eterm sets $TERM to)

as your PRECOMMAND (or however it is called); ksh uses discipline 
functions for that.


        Heiko



More information about the Xfce mailing list