Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 595
bessarabov Avatar asked Dec 03 '11 12:12

bessarabov


People also ask

What is the command used for simple use of GNU screen?

Log files of current screen sessions can be started with the Ctrl+a H command, which will make a file called screenlog. X where X is the number of your screen session. A screenshot of what is currently in your screen window can be invoked with Ctrl+a h, creating a file called hardcopy.

How does GNU screen work?

GNU Screen is a terminal multiplexer, a software application that can be used to multiplex several virtual consoles, allowing a user to access multiple separate login sessions inside a single terminal window, or detach and reattach sessions from a terminal.

How do I download GNU screen?

Downloading GNU Screen GNU Screen can be found on http://ftp.gnu.org/gnu/screen/ [via http] and ftp://ftp.gnu.org/gnu/screen/ [via FTP]. It can also be found on one of our FTP mirrors; please use a mirror if possible.


1 Answers

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

like image 54
Andrey Starodubtsev Avatar answered Oct 02 '22 21:10

Andrey Starodubtsev