setting xterm title

To set a xterm title (or any compatible x-shell app)
run:
echo -ne "\033]0;string\007 -- to set icon name and window title to string
echo -ne "\033]1;string\007 -- to set icon name to string
echo -ne "\033]2;string\007 -- to set window title to string


引用元: Linux Howtos: Tips and Tricks -> setting xterm title,
"http://www.linuxhowtos.org/Tips%20and%20Tricks/xtermtitle.htm"