Search This Blog

Wednesday, June 09, 2010

Showing tabs of open sessions in screen

Screen is a very good terminal-multiplexer to allow multiple terminal sessions.

It is very useful when you are working on a remote machine through ssh.

More info about screen at: https://help.ubuntu.com/community/Screen

But it could be quite irritating when you have multiple sessions open and you have to cycle through them frequently since there are no tabs or status bar.

But, there is a solution for the same :)

Edit /etc/screenrc or ~/.screenrc and add the following line. Then start screen.

caption always '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %D %Y-%m-%d %c:%s %{g}]'