Path: 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 ; bel Message-ID: <107@minya.UUCP> Date: 13 Feb 90 04:07:23 GMT References: <4869@amelia.nas.nasa.gov> Distribution: comp.windows.x Lines: 28 In article <4869@amelia.nas.nasa.gov>, samlb@pioneer.arc.nasa.gov (Sam Bassett RCD) writes: > > Send T<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.]