Ciao Nikos Voutsinas,

 > I would like (somehow) to change dynamically xterm title according to the 
 > LOGNAME and HOSTNAME env. Anyone who can help?

you can start from this function in /etc/profile:

if [ -n "$DISPLAY" ]; then
        cd ()
        { builtin cd $* && echo -n -e "\\033]0; $TERM: $PWD \a"; }
        echo -n -e "\\033]0; $TERM: $PWD \a"
        export -f  cd
fi

and change it for your needs.

Ciao

-- 

Paolo Pedaletti, Como, ITALYa
[EMAIL PROTECTED]
  • xterm&... Nikos Voutsinas
    • Re: ... Peter Weiss - Sun Germany ENS Engineer Mission Critical - Munich
    • Re: ... Paolo Pedaletti
      • ... Nikos Voutsinas
        • ... Chanop Silpa-Anan
    • Re:x... Nikos Voutsinas

Reply via email to