Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
xterm titlebar does not change when running under screen
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Souperman
Guru
Guru


Joined: 14 Jul 2003
Posts: 449
Location: Cape Town, South Africa

PostPosted: Mon Dec 29, 2003 7:43 am    Post subject: xterm titlebar does not change when running under screen Reply with quote

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
View user's profile Send private message
Tazmanian
Apprentice
Apprentice


Joined: 01 Jul 2003
Posts: 222

PostPosted: Mon Dec 29, 2003 8:56 am    Post subject: Re: xterm titlebar does not change when running under screen Reply with quote

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
View user's profile Send private message
Souperman
Guru
Guru


Joined: 14 Jul 2003
Posts: 449
Location: Cape Town, South Africa

PostPosted: Mon Dec 29, 2003 9:38 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum