From owner-freebsd-questions@FreeBSD.ORG Sat Feb 6 12:55:55 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 3B392106566B for ; Sat, 6 Feb 2010 12:55:55 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id EAE328FC08 for ; Sat, 6 Feb 2010 12:55:54 +0000 (UTC) Received: from [93.104.118.74] (helo=current.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NdkCW-0000RE-F2; Sat, 06 Feb 2010 13:55:52 +0100 Received: from current.Sisis.de (current [127.0.0.1]) by current.Sisis.de (8.14.3/8.14.3) with ESMTP id o16CttUt002211; Sat, 6 Feb 2010 13:55:55 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id o16Cttkd002210; Sat, 6 Feb 2010 13:55:55 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Sat, 6 Feb 2010 13:55:55 +0100 From: Matthias Apitz To: Dominic Fandrey Message-ID: <20100206125554.GA2173@current.Sisis.de> References: <4B6D62B3.4070702@bsdforen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4B6D62B3.4070702@bsdforen.de> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 8.0-CURRENT (i386) X-Con-Id: 51246 X-Originating-IP: 93.104.118.74 Cc: freebsd-questions@freebsd.org Subject: Re: backup terminal title X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Feb 2010 12:55:55 -0000 El día Saturday, February 06, 2010 a las 01:38:11PM +0100, Dominic Fandrey escribió: > I just started to wonder how portmaster changes the window title > of my terminal and why it doesn't change it back when it > terminates. > > Some digging in the portmaster code showed up an escape sequence: > printf "\033]0;%s\007" "YOUR TEXT GOES HERE" > > Unfortunately I am entirely clueless as to how one could backup > the old title string to restore it upon termination. It seems > to me this ought to be a precondition to using this kind of > feature. Play around with xwininfo(1), like: $ xwininfo -tree -root | fgrep xterm which prints the titles for all your XTerm windows. HIH matthias -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/ Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu