Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Question title says it all.

I am not able to tell which window of my screen session I am in, to find that out I am having to view ^aw (window list) and look at the where the * is to tell which window I am in. WOuld be nice if gnome terminal's title changed everytime I switch windows with in my screen session.

There are quite a few questions in serverfault around this subject but I haven't been able to find an answer to my specific question.

[btw, for future visitors, based on HUB's answer

hardstatus alwayslastline "Terminal Win: %n - [%t]"
hardstatus ignore

don't know how, but it simply did the trick in updating gnome-terminal window's title bar with current screen window.]

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

Add these lines to your screenrc:

caption always
caption string "%{kg}%-w%{wb}|%n %t|%{-}%+w"
hardstatus alwayslastline "You are on: %H  | Now is:  %C%a  %d %M %Y |"

I hope this will help you.

share|improve this answer
    
Thanks, though it doesn't change the gnome-terminal's title bar, I can live with this since it puts a permanent status bar at the bottom showing which window I am in. –  Murali Oct 6 '10 at 19:18
1  
Btw, hardstatus alwayslastline "Terminal Win: %n - [%t]" hardstatus ignore don't know how but it simply did the trick in updating gnome-terminal window's title bar with current screen window. –  Murali Oct 6 '10 at 21:20
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.