View previous topic :: View next topic |
Author |
Message |
Souperman Guru
Joined: 14 Jul 2003 Posts: 449 Location: Cape Town, South Africa
|
Posted: Mon Dec 29, 2003 7:43 am Post subject: xterm titlebar does not change when running under screen |
|
|
I have this in /etc/profile:
Code: |
case $TERM in
xterm*|rxvt|Eterm|eterm)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME%%.*}:${PWD}\007"'
;;
screen)
PROMPT_COMMAND='echo -ne "\033_${USER}@${HOSTNAME%%.*}:${PWD}\033\\"'
;;
esac
|
When I first log in this works fine, the title bar changes as it should. The problem is that I use screen to "multi-task" and as soon as screen is running, the titlebar stops updating. $TERM='xterm-color' before starting/re-attaching screen and $TERM='screen' inside screen.
Anyone know what's wrong? _________________ moo |
|
Back to top |
|
|
Tazmanian Apprentice
Joined: 01 Jul 2003 Posts: 222
|
Posted: Mon Dec 29, 2003 8:56 am Post subject: Re: xterm titlebar does not change when running under screen |
|
|
Curious. I've modified my configuration to match what you've described, and it works for me.
The only thing I can think of is I seem to recall tweaking my termcap when I first installed my system. Though since I recently re-merged everything on my system, those tweaks most likely went away, and it all still works....
They only term-related, screen-related thing I can find on my system is /usr/share/terminfo/screencap, which is owned by screen-4.0.1-r1.
Try updating your screen package and see if that fixes it. |
|
Back to top |
|
|
Souperman Guru
Joined: 14 Jul 2003 Posts: 449 Location: Cape Town, South Africa
|
Posted: Mon Dec 29, 2003 9:38 am Post subject: |
|
|
I'm using the same version. I wonder if it might be an issue with PuTTy not recognising the different escape codes. Yeah, yeah, I know I said "xterm" titlebar, but I figured the same thing applied. _________________ moo |
|
Back to top |
|
|
|