3

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

1 Answer 1

4

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.

2
  • 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, 2010 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, 2010 at 21:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .