Add Comment

You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.

To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.

This is the comment you were replying to, attached to the article Differentiating xterms:


Re: Differentiating xterms
Posted by Anonymous (62.4.xx.xx) on Mon 14 Mar 2005 at 10:07
Hi,
This tips suck ;0)
It's mutch better to dynamicly change the xterm title with echo.
Put this line in your zshrc :

ZSH :
precmd()
{
case $TERM in
xterm*)
echo -ne "\033]0;${USER}@${HOST%%.*}:${PWD/$HOME/~}\007"
;;
screen)
echo -ne "\033_${USER}@${HOST%%.*}:${PWD/$HOME/~}\033\\"
;;
esac
}

You will get a nice title like that : user@hostname:path

Best Regards

Username:Anonymous
Title:
Your Comment:

Posting Format:

 

Inappropriate comments will be removed.

Some help on entry formatting is available

User Login

Username:

Password:

[ Advanced Login ]

Register Account

Quick Site Search