🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.x
Article #36741

Re: changing titles

#36741
From: John Chambers
Date: Tue, 13 Feb 1990 04:07
28 lines
1456 bytes
In article <4869@amelia.nas.nasa.gov>, samlb@pioneer.arc.nasa.gov (Sam Bassett RCD) writes:
> 
> 	Send <Esc>T<Title Text><LF> to the screen -- the <Title Text> can
> be anything you want, event the output from `pwd`.
> 
> 	echo "<Esc>T`pwd`" should do it handily.

This doesn't work at all here (twm+xterm); it just puts the `pwd` minus
its first two bytes out on the next line, and doesn't alter the title
bar.  Here's what I use here and on some DECwindows systems at work:

switch ( "$TERM" )  # Some terminal-specific stuff.
	case xterm*:    # For xterm, we know how to write to the title bar.
			alias   setttl 'echo "^[]0;"$HOST":"`pwd`"^G"'
			alias   putttl 'echo "^[]0;"\!*"^G"'
	...

I then use setttl in the alias for cd and rlogin, and putttl when I want
to write the title bar from a script.

So how many different ways are there to do it, and on which systems?  Is
there any really portable way?


-- 
John Chambers ...!{harvard,ima,mit-eddie}!minya!jc

[Sorry, no clever saying today.]
Technical Details
Message-ID: <107@minya.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!spdcc!ima!minya!jc
References: <NIERMANN.90Feb11143721@grumpy.csg.uiuc.edu> <4869@amelia.nas.nasa.gov>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!spdcc!ima!minya!jc
From: jc@minya.UUCP (John Chambers)
Newsgroups: comp.windows.x
Subject: Re: changing titles
Summary: esc ] 0 ; <text> bel
Message-ID: <107@minya.UUCP>
Date: 13 Feb 90 04:07:23 GMT
References: <NIERMANN.90Feb11143721@grumpy.csg.uiuc.edu> <4869@amelia.nas.nasa.gov>
Distribution: comp.windows.x
Lines: 28