That simple program will change the icon and title to the arguments from the command line.#!/usr/bin/perl -w use strict; print("\e]0;@ARGV\7");
The important part is the "\e]0" and "\7". The first tells the terminal that the following text is meant to be the title. The \7 terminates the title string. Also "\e]1" sets only the icon name, and "\e]2" sets only the title.
In reply to How to change an xterm title on the fly by suaveant
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |