From owner-freebsd-questions@FreeBSD.ORG Sun Feb 7 07:18:03 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDEA41065670 for ; Sun, 7 Feb 2010 07:18:03 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id 963BE8FC0A for ; Sun, 7 Feb 2010 07:18:02 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.3/8.14.3) with ESMTP id o177I1cG052616; Sun, 7 Feb 2010 00:18:01 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.3/8.14.3/Submit) with ESMTP id o177I1RN052613; Sun, 7 Feb 2010 00:18:01 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Sun, 7 Feb 2010 00:18:01 -0700 (MST) From: Warren Block To: perryh@pluto.rain.com In-Reply-To: <4b6e5801.lWIkM1CRXy7E/cY/%perryh@pluto.rain.com> Message-ID: 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+a00oT7AqSzy%perryh@pluto.rain.com> <4b6e5801.lWIkM1CRXy7E/cY/%perryh@pluto.rain.com> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (wonkity.com [127.0.0.1]); Sun, 07 Feb 2010 00:18:01 -0700 (MST) Cc: freebsd-questions@freebsd.org Subject: Re: backup terminal title X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 Feb 2010 07:18:03 -0000 On Sat, 6 Feb 2010, perryh@pluto.rain.com wrote: > Warren Block 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