Date: Sun, 7 Feb 2010 00:18:01 -0700 (MST) From: Warren Block <wblock@wonkity.com> To: perryh@pluto.rain.com Cc: freebsd-questions@freebsd.org Subject: Re: backup terminal title Message-ID: <alpine.BSF.2.00.1002062342560.52524@wonkity.com> In-Reply-To: <4b6e5801.lWIkM1CRXy7E/cY/%perryh@pluto.rain.com> References: <4B6D62B3.4070702@bsdforen.de> <20100206125554.GA2173@current.Sisis.de> <4B6D74EF.2090106@bsdforen.de> <4B6D80F3.7050707@black-earth.co.uk> <4B6D8377.1090005@bsdforen.de> <4B6D9B6B.40800@bsdforen.de> <4b6e2885.uAuY%2Ba00oT7AqSzy%perryh@pluto.rain.com> <alpine.BSF.2.00.1002062051400.52041@wonkity.com> <4b6e5801.lWIkM1CRXy7E/cY/%perryh@pluto.rain.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 6 Feb 2010, perryh@pluto.rain.com wrote: > Warren Block <wblock@wonkity.com> wrote: >> What's the sequence for reading the terminal title? > > If I remembered it I'd have included it :) I did some unsuccessful searching for "query xterm title" earlier today. > The first 3 results from Googling "xterm escape sequences" are > > rtfm.etla.org/xterm/ctlseq.html That one has it: printf "\033];badexample\007" This sets the title in both xterm and Terminal. printf "\033[21;t\n" That brings back the title in Terminal, with a leading "l"... and in the keyboard buffer. Doesn't work in xterm, possibly because xterm is pickier about the exact sequence. -Warren Block * Rapid City, South Dakota USA
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1002062342560.52524>