Gentoo Archives: gentoo-user

From: Paul Hartman <paul.hartman+gentoo@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Setting Putty window title to currently executing command
Date: Sat, 06 Dec 2008 22:27:42
Message-Id: 58965d8a0812061427w1b383a9vebc2c4c6ae3ebf0b@mail.gmail.com
In Reply to: Re: [gentoo-user] Setting Putty window title to currently executing command by "John J. Foster"
1 On Sat, Dec 6, 2008 at 4:04 PM, John J. Foster
2 <Gentoo-User@××××××××××××××××××××××.org> wrote:
3 > On Sat, Dec 06, 2008 at 03:58:36PM -0600, Paul Hartman wrote:
4 >> On Sat, Dec 6, 2008 at 3:11 PM, John J. Foster
5 >> <Gentoo-User@××××××××××××××××××××××.org> wrote:
6 >> > I seem to remember ssh'ing into an old Gentoo box and having the window
7 >> > title change to the currently executing command. For instance, when
8 >> > emerging something that had 10 packages, the title would show something
9 >> > like
10 >> >
11 >> > emerging (4 of 10) perl_something_or_other
12 >> >
13 >> > I'm not sure whether I was using screen at the time, or not. I'm not
14 >> > even positive I was using Putty (I might have been on another 'nix).
15 >> >
16 >> > Can anyone help me out?
17 >>
18 >> I use PuTTY on Windows and the title updates as you described. I don't
19 >> think I had to do anything special to accomplish it.
20 >>
21 > Thanks Paul, but mine doesn't do it anymore. I'm ssh'ing to 2 different
22 > Gentoo boxes, one is a VM on my wifes XP box and the other is a just
23 > rebuilt Gentoo workstation. Think this could have anything to do with
24 > the Bash configuration?
25
26 Make sure you do not have "notitles" set in /etc/make.conf -- i think
27 it disables the feature you're trying to get.
28
29 I also think there may be .screenrc options to control this... in my
30 /etc/screenrc i have:
31
32 # special xterm hardstatus: use the window title.
33 termcapinfo xterm 'hs:ts=\E]2;:fs=\007:ds=\E]2;screen\007'
34
35 Thanks,
36 Paul