Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Feb 2010 08:15:09 -0500
From:      Thomas Dickey <dickey@radix.net>
To:        Matthias Apitz <guru@unixarea.de>
Cc:        Dominic Fandrey <kamikaze@bsdforen.de>, freebsd-questions@freebsd.org
Subject:   Re: backup terminal title
Message-ID:  <20100206131509.GB14340@saltmine.radix.net>
In-Reply-To: <20100206125554.GA2173@current.Sisis.de>
References:  <4B6D62B3.4070702@bsdforen.de> <20100206125554.GA2173@current.Sisis.de>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Sat, Feb 06, 2010 at 01:55:55PM +0100, Matthias Apitz wrote:
> 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.

iirc, vim does something like this, but it has the potential for being
very slow (ymmv).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (SunOS)
Comment: For info see http://www.gnupg.org

iD8DBQFLbWtbtIqByHxlDocRAjyYAKChS3eALb+nAXVtlZUtoeTU0BSjZQCdGCSx
LupIJbgqUxq2v6yiNsG8xaE=
=uSFu
-----END PGP SIGNATURE-----
help

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