Sunday 14 April 2013

How to set the title of a XTERM window

The title of a XTERM window can be set using the following

escape sequence:

ESC ] 0 ; title ^G

Example:

echo "^[]0;This is a title^G"

Enter the escape character (the first character of the string) as CTRL-V ESC. On the screen you will see "^[".

The last character is entered as CTRL-V CTRL-G.

0 blogger-disqus:

Post a Comment