Set Cygwin RXVT Window Title

From PeformIQ Upgrade
Revision as of 16:05, 3 March 2010 by PeterHarding (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Here's How

You can always set the xterm title by sending it the string:

Esc ] 0 ;<your title> ^G

You can do it from the xterm application (writing to/dev/tty or stdout if its connected, or externally, by writing to /dev/tty<n> [Cygwin] or /dev/pts/<n> [Linux]).

A Shell Script

#!/bin/sh

echo "^][0;hostname^G"