🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #37480

Re: changing title

#37480
From: Duane Voth
Date: Wed, 28 Feb 1990 16:12
27 lines
1474 bytes
In article <112@minya.UUCP>, jc@minya.UUCP (John Chambers) writes:
> In article <347@seti.inria.fr> soulard@iznogoud.inria.fr (Herve Soulard) writes:
> > 	Title name and icon name of a window can be change
> > 	using these control sequences :
> > 		<ESC> ] 0 ; string <BEL>  and string will become
> > 					   the title and icon name
>
> ..  This works just fine, and I go on to alias cd to call setttl
> to get the hostname and cwd into the title bar.  It also produces a
> newline, which goes to the window as ordinary output, causing a blank
> line on the screen.

I've found that a second ESC at the end of the title string "suppreses"
the newline with no apparent side affects.  My csh aliases look like:

	xlabel  echo -n "${ESC}]0;!*${ESC}"
	xititle echo -n "${ESC}]1;!*${ESC}"
	xtitle  echo -n "${ESC}]2;!*${ESC}"

where ESC was "set"ed to ^[ previously.


-- 
--- duane voth                                         duanev@mcc.com
----    {uunet,harvard,gatech,pyramid}!cs.utexas.edu!milano!pp!duanev
--- ALL systems are arbitrary!  Effectiveness is the measure of Truth
--
Technical Details
Message-ID: <608@kauai.ACA.MCC.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!pp!kauai!duanev
References: <347@seti.inria.fr> <112@minya.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!pp!kauai!duanev
From: duanev@kauai.ACA.MCC.COM (Duane Voth)
Newsgroups: comp.windows.x
Subject: Re: changing title
Summary: add a trailing ESC
Message-ID: <608@kauai.ACA.MCC.COM>
Date: 28 Feb 90 16:12:18 GMT
References: <347@seti.inria.fr> <112@minya.UUCP>
Organization: MCC, Austin, TX
Lines: 27