🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x.apps
Article #715

Re: Setting icon title for an xterm

#715
From: Andrew Joyner
Date: Sun, 24 Jan 1993 23:18
30 lines
1879 bytes
In article <C17oFA.Hq2@cs.uiuc.edu>, schwager@mike.cs.uiuc.edu (Mike Schwager) writes:
|> 
|> Ladees and Germs,
|> How would I set the icon title for an xterm, from that xterm.  I already
|> know how to reset the titlebar title, but I forgot where I got that
|> information from.... if you could point me to where you got your info from,
|> that would be appreciated.  I tried to do a man xterm to no avail.  Thanks!
|> -Mike Schwager
|> -Mike
|> aka, Mike Schwager               |"I will never apologize for the United States
|> INTERNET:schwager@cs.uiuc.edu    | of America, ever.  I don't care what the
|> Bye, George!!!                   | facts are."  -George Bush
|> University of Illinois, Dept. of Comp. Sci., for whom I do not speak
|> 

One way to do it dynamically is...

echo "^[]2;string^G	# to set the xterm title bar, and...
echo "^[]1;string^G	# to set the icon name.

where ^[ is escape and ^G is ctrl-G. You can of course use this inside
scripts etc. You can also alias 'cd' to change the title bar to the
current working directory etc. 101 uses.

-- 
Andrew Joyner   [andrewj@tplrd.tpl.oz.au] | luffness (n): Hearty feeling that
Hardware Design Engineer, R&D Elec Eng.   | comes from walking on the moors
Telectronics Pacing Systems, Lane Cove NSW| with gumboots and cold ears. \\\
Australia       v:+61 2 413-6939  f:-6060 | -+- Erupting Bus-Driver Inc. -+-
Technical Details
Message-ID: <1993Jan25.102302.10987@tpl68k0.tplrd.tpl.oz.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!tpsrd!tplrd!andrewj
References: <C17oFA.Hq2@cs.uiuc.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.x.apps
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!csn!tpsrd!tplrd!andrewj
From: andrewj@tplrd.tpl.oz.au (Andrew Joyner)
Subject: Re: Setting icon title for an xterm
Message-ID: <1993Jan25.102302.10987@tpl68k0.tplrd.tpl.oz.au>
Originator: andrewj@sydrd19
Lines: 30
Nntp-Posting-Host: sydrd19
Organization: Telectronics Pacing Systems
References: <C17oFA.Hq2@cs.uiuc.edu>
Date: Sun, 24 Jan 93 23:18:41 GMT