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
screen command in Linux provides the ability to launch and use multiple shell sessions from a single ssh session. When a process is started with 'screen', the process can be detached from session & then can reattach the session at a later time.
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.
To start a screen session, you simply type screen within your ssh session. You then start your long-running process, type Ctrl+A Ctrl+D to detach from the session and screen -r to reattach when the time is right.
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With