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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to change an xterm title on the fly
by stefan k (Curate) on Oct 22, 2001 at 18:39 UTC | |
by suaveant (Parson) on Oct 22, 2001 at 18:45 UTC | |
|
Re: How to change an xterm title on the fly
by jirwin (Monk) on Dec 29, 2001 at 00:25 UTC | |
|
Re: How to change an xterm title on the fly
by jmcnamara (Monsignor) on Feb 14, 2003 at 16:29 UTC |