From: av@kielo (Arto V. Viitanen)
Subject: Re: Machine Name in The Title bar???
Date: 14 Oct 1994 06:52:20 GMT [thread overview]
Message-ID: <AV.94Oct14085220@kielo> (raw)
In-Reply-To: oberman@icaen.llnl.gov's message of Thu, 13 Oct 94 19:27:54 GMT
>>>>> "oberman" == oberman <oberman@icaen.llnl.gov> writes:
In article <37ju4u$dmc@lll-winken.llnl.gov> oberman@icaen.llnl.gov writes:
oberman> In Article <37jkes$12c8@whale.st.usm.edu> chambles@whale.st.usm.edu
oberman> (John William Chambless) writes:
>> Someone pointed out in email that Mike probably wanted a way to
>> _dynamically_ change the window title, ie. have the window title change
>> as he logged into a different machine.
>>
oberman> The strings you are interested are near the bottom of page 4.
oberman> <esc>]0;string<bel> changes both the title and the icon to "string"
oberman> <esc>]1;string<bel> changes both the icon to "string"
oberman> <esc>]2;string<bel> changes the title to "string"
oberman> <esc>]50;font<bel> changes the font to "font"
oberman> <esc> is 33(8) and <bel> is 7.
Yes, I use them to set my xterm title to contain current directory and
machine. Depending on the machine I am, I use either tcsh or zsh. On tcsh, I
have:
alias precmd 'echo -n "^[]2;`pwd` ($HOST)^G"'
Where ^[ is actually <esc> and ^G is actually <bel>. This is based on the
fact, that tcsh evaluates precmd alias before it prints the prompt.
On zsh, I have
function precmd() {
echo -n "^[]2;`pwd` ($HOST)^G"
}
since zsh uses function precmd for same efect as tcsh uses the alias.
Arto V. Viitanen Internet: av@cs.uta.fi
University Of Tampere, X.400: S=av;OU=cs;O=ut;ADMD=fumail;C=fi
Finland http://www.uta.fi/~av/
next prev parent reply other threads:[~1994-10-14 6:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-10-10 16:19 Machine Name in The Title bar??? Mike Hatz
1994-10-10 19:20 ` Ajay Shekhar
1994-10-11 13:50 ` FUHRMANN
1994-10-14 18:48 ` Eric Johnson
1994-10-15 17:16 ` Torbj|rn Lindgren
1994-10-13 14:34 ` John William Chambless
1994-10-13 15:41 ` John William Chambless
1994-10-13 19:27 ` oberman
1994-10-14 6:52 ` Arto V. Viitanen [this message]
1994-10-15 10:48 ` Christian Javet
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox