Search code examples
linuxmenugnu-screen

screen command to persistently enable menu at bottom


I am using the Linux Screen Utility to open more than 2 windows in my Putty terminal. Usually while running a screen session a

Ctrl+A Ctrl+W

gives us a list of window at the bottom of the screen.

I have two questions:

  • I wanted to know if there is a way to persistently keep this menu at the bottom of the screen.

  • How to give name to each window? Ideally when we execute

    screen -S screen_name

the screen_name should appear in the menu. I can only find

0.csh 1.csh 2.csh

in the menu. can this be changed to

0.debug_screen 1.editor 2.games

Solution

  • I have following lines in my .screenrc (found in Short Tip: GNU Screen with proper scroll, session management support):

    caption always # activates window caption
    caption string '%{= wk}[ %{k}%H %{k}][%= %{= wk}%?%-Lw%?%{r}(%{r}%n*%f%t%?(%u)%?%{r})%{k}%?%+Lw%?%?%= %{k}][%{b} %Y-%m-%d %{k}%c %{k}]'
    

    A description of those cryptic identifiers can be found in the screen manpage, section STRING ESCAPES.

    Btw.: Instead of caption you can also use hardstatus (which is displayed only once at the bottom line if you use split screens).

    Windows can be renamed using C-a A (see again screen manpage, section Commands).