Gentoo Archives: gentoo-user

From: Chris Lieb <chris.lieb@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Screen and Window Titles in screen
Date: Thu, 26 Feb 2009 18:52:43
Message-Id: 49A6E4F5.8040803@gmail.com
In Reply to: Re: [gentoo-user] Screen and Window Titles in screen by Paul Hartman
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Paul Hartman wrote:
5 > On Thu, Feb 26, 2009 at 11:25 AM, Chris Lieb <chris.lieb@×××××.com> wrote:
6 >> I am trying to get screen set up and am running into some issues getting
7 >> it to display titles like I want. When I'm not running screen, commands
8 >> like emerge change the title of the console I'm currently in (like
9 >> Konsole or PuTTY (win)). When I start up screen, all I get is the name
10 >> of the host that I am ssh'd into. I am testing only with PuTTY right
11 >> now since I don't have access to a Linux box with X on it right now.
12 >
13 > I use PuTTY and screen and window titles are shown in the screens
14 > during emerging, etc... I don't think I've had to do anything to
15 > accomplish this, I'm just using the default /etc/screenrc
16 >
17 > I did find a great status-bar that shows open screens (gentoo weekly
18 > newsletter? or maybe on this list... don't remember):
19 >
20 > caption always "%{= kw}%-w%{= BW}%n %t%{-}%+w %-= @%H - %LD %d %LM - %c"
21
22 My problem was that I used hardstatus instead of caption. This allows
23 the window title to be set by the terminal.
24
25 Is there a way to have a child screen session set the title of the
26 terminal, eg. I run emerge inside a screen inside a screen (like sshing
27 from one computer to another)?
28
29 Also, is there a way to get the screen title to match the terminal title?
30
31 > As far as the syntax of the hardstatus I think it may be usual termcap syntax.
32
33 Can you give me a pointer to where a definition of that syntax is? All
34 I find is for defining capabilities of terminals.
35 -----BEGIN PGP SIGNATURE-----
36 Version: GnuPG v1.4.9 (MingW32)
37 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
38
39 iQEcBAEBAgAGBQJJpuT1AAoJEJWxx7fgsD+C7s4H/0ZwCpyknJ81JSWtlbMvAgry
40 a4PXBxHy1IS8hRxwOwvSrNqeFcIlfcgv7dZxf0wCYyho8+QOpRNQN6yhI6VeQhqW
41 uye4WIq8tslf9zw3cKZuBNTt7QBVJlmu2uvszCXhI6WUF84QrgdGiBAWoP8A9Hx+
42 YZHs3LMvbwRRgjqy0WVttg+OVWDq3kuuOi5pMlAKvZ7/5Y1EnS1xCu0uv1F+7UBE
43 /fqBkCzbsaWqM7fdLvBDv1CnKl0FDZNRgOMFbCTDohTfRdPXIzyFPIzxFJBnTimn
44 o32Nx1O69lYbBHNv2NyC9DeObyb9ofB3trPLpI1YBrn1GiCt8llKf6CbKwEed0Q=
45 =scfV
46 -----END PGP SIGNATURE-----

Replies

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