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.]

link|improve this question
feedback

1 Answer

up vote 2 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.

link|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
feedback

Your Answer

 
or
required, but never shown

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