title for xterm 

> Can anyone tell me how to add in a title to xterm(see, the current dir)?

The sequence to set the header is

/bin/echo "\033]0;The-text-you-want-as-header\07"

To set the icon name you need

/bin/echo "\033]1;The-icon-text\07"

Jan Wuyts

title for xterm 

\033]0; will set the title and the icon\07
\033]1; will set the icon\07
\033]2; will set the title\07