Hello Peter, HelloPaolo Thanks for replying I have been using about the same escape sequence (except in tcsh....) In my .tcshrc...
switch ($TERM) case "{xterm*,rxvt*}": alias periodic 'echo -n "\033]0;[EMAIL PROTECTED] `date +%A\ \[%d\]\ \ %B`\007"' set prompt="%n:%c03%#" breaksw default: set prompt="%n:%c4%#" breaksw the problem...... Telneting to debian machine seems to work fine But under other OS (still xterm terminal not dtterm or any other) the shell just change the prompt to \033]0;[EMAIL PROTECTED] Wednesday [05] April \007> I cant figure out if the problem is on the escape sequence, the xterm version, or the echo command? I have try all the combinations of /bin/echo, builtin echo, and the argg -n , -n -e Any idea?? Peter: The relative HOWTO claims tha the same espace sequence works with dtterm to.Well ..i had the same problem.(Solaris 7 sun4u) ----- Original Message ----- From: "Paolo Pedaletti" <[EMAIL PROTECTED]> To: "Nikos Voutsinas" <[EMAIL PROTECTED]> Cc: <debian-user@lists.debian.org> Sent: Tuesday, April 04, 2000 2:24 PM Subject: Re: xterm&title > 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] > > > -- > Unsubscribe? mail -s unsubscribe [EMAIL PROTECTED] < /dev/null > >