Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Feb 2010 13:55:55 +0100
From:      Matthias Apitz <guru@unixarea.de>
To:        Dominic Fandrey <kamikaze@bsdforen.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: backup terminal title
Message-ID:  <20100206125554.GA2173@current.Sisis.de>
In-Reply-To: <4B6D62B3.4070702@bsdforen.de>
References:  <4B6D62B3.4070702@bsdforen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <guru@unixarea.de> - w http://www.unixarea.de/
Vote NO to EU The Lisbon Treaty: http://www.no-means-no.eu



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100206125554.GA2173>