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>

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

--Bn2rw/3z4jIqBvZU
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Feb 06, 2010 at 01:55:55PM +0100, Matthias Apitz wrote:
> El d=EDa Saturday, February 06, 2010 a las 01:38:11PM +0100, Dominic Fand=
rey escribi=F3:
>=20
> > 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.
> >=20
> > Some digging in the portmaster code showed up an escape sequence:
> > printf "\033]0;%s\007" "YOUR TEXT GOES HERE"
> >=20
> > 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.
>=20
> Play around with xwininfo(1), like:
>=20
> $ xwininfo -tree -root | fgrep xterm
>=20
> 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).

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

--Bn2rw/3z4jIqBvZU
Content-Type: application/pgp-signature
Content-Disposition: inline

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

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

--Bn2rw/3z4jIqBvZU--



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