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
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 I am trying to get screen set up and am running into some issues getting
5 it to display titles like I want. When I'm not running screen, commands
6 like emerge change the title of the console I'm currently in (like
7 Konsole or PuTTY (win)). When I start up screen, all I get is the name
8 of the host that I am ssh'd into. I am testing only with PuTTY right
9 now since I don't have access to a Linux box with X on it right now.
10
11 I figured that it might be easier to get screen to set the title of one
12 of the screens automatically from the title that the bash session that
13 it is hosting has. After digging a bit, I found shelltitle, but that
14 only seems to read the name of the currently executing command, and also
15 overwrites the name that I might have assigned to that screen.
16
17 My goal is to have titles that are something like:
18 [screen title]: [xterm title]
19 where I can set [screen title] using C-a A and [xterm title] is what I
20 would normally see as the title of an XTerm/Konsole/PuTTY.
21
22 Is it possible to achieve something even close to this?
23
24 Thanks,
25 Chris Lieb
26
27 PS. Where can I find a reference for the syntax for the format strings
28 for things like hardstatus? I can't seem to find anything using Google.
29 -----BEGIN PGP SIGNATURE-----
30 Version: GnuPG v1.4.9 (MingW32)
31 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
32
33 iQEcBAEBAgAGBQJJptCLAAoJEJWxx7fgsD+ChpQH/15nqEBcMjiFVuaeccQc9fmj
34 OlU12u00w56j9XMfdWh+KsfFS0GDh6vODznLteunBoFS63wIKgRZtJUS5E0OgJsv
35 nt4TaseIDS9TZhJIIj7l3I6d4IXKa2TBi2ONb0/NdNAX8zl0Y+hnIbUCYKG8ny6c
36 IWWbQHsp4qgF3rdu3ge1IhZfggiPz8OEBe0339PLSiVoiIkSQN98++pDc9GR4GoL
37 N+HyJClZ/iCX7NNY/XcaFg7Agh5tzS19f7UlXiZQ462FWv6T0mGMutKE34ZEySPI
38 WMHGMWewsQEehvboRsk/UdoCwSFDA8qBLK9u0KS6l55qYTmwMVvaFrsAOXjFrag=
39 =VuJ8
40 -----END PGP SIGNATURE-----

Replies

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