Gentoo Archives: gentoo-user

From: Chris Lieb <chris.lieb@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Screen and Window Titles in screen
Date: Thu, 26 Feb 2009 17:25:35
Message-Id: 49A6D08B.2080804@gmail.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I am trying to get screen set up and am running into some issues getting
it to display titles like I want.  When I'm not running screen, commands
like emerge change the title of the console I'm currently in (like
Konsole or PuTTY (win)).  When I start up screen, all I get is the name
of the host that I am ssh'd into.  I am testing only with PuTTY right
now since I don't have access to a Linux box with X on it right now.

I figured that it might be easier to get screen to set the title of one
of the screens automatically from the title that the bash session that
it is hosting has.  After digging a bit, I found shelltitle, but that
only seems to read the name of the currently executing command, and also
overwrites the name that I might have assigned to that screen.

My goal is to have titles that are something like:
	[screen title]: [xterm title]
where I can set [screen title] using C-a A and [xterm title] is what I
would normally see as the title of an XTerm/Konsole/PuTTY.

Is it possible to achieve something even close to this?

Thanks,
Chris Lieb

PS. Where can I find a reference for the syntax for the format strings
for things like hardstatus?  I can't seem to find anything using Google.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQEcBAEBAgAGBQJJptCLAAoJEJWxx7fgsD+ChpQH/15nqEBcMjiFVuaeccQc9fmj
OlU12u00w56j9XMfdWh+KsfFS0GDh6vODznLteunBoFS63wIKgRZtJUS5E0OgJsv
nt4TaseIDS9TZhJIIj7l3I6d4IXKa2TBi2ONb0/NdNAX8zl0Y+hnIbUCYKG8ny6c
IWWbQHsp4qgF3rdu3ge1IhZfggiPz8OEBe0339PLSiVoiIkSQN98++pDc9GR4GoL
N+HyJClZ/iCX7NNY/XcaFg7Agh5tzS19f7UlXiZQ462FWv6T0mGMutKE34ZEySPI
WMHGMWewsQEehvboRsk/UdoCwSFDA8qBLK9u0KS6l55qYTmwMVvaFrsAOXjFrag=
=VuJ8
-----END PGP SIGNATURE-----

Replies

Subject Author
Re: [gentoo-user] Screen and Window Titles in screen Paul Hartman <paul.hartman+gentoo@×××××.com>