How to show in GNU Screen hardstatus what tab was selected previously?

bessarabov picture bessarabov · Dec 3, 2011 · Viewed 9.3k times · Source

Every time I work in the console I use GNU Screen. I have a custom .screenrc file with several settings. Among others I have the setting that shows 'tabs' in the bottom:

hardstatus alwayslastline
hardstatus string "%{= g} %{= w}%-w%{=r}%n %t%{-}%+W"

It works well, but I want to add to the tabs some symbol that shows what tab was previously active. How can this be done?

Answer

Andrey Starodubtsev picture Andrey Starodubtsev · Feb 21, 2012

You can use can use following string:

hardstatus string "%{= g} %{= w}%-Lw%{=r}%n%f* %t%{-}%+LW"

Than window with focus will be marked with symbol '*' and previous one - with '-'.