1 #C-a ? Displays commands and their defaults
2 #C-a w Display a non-interactive list of windows at the bottom of screen
3 #C-a C-a Toggle between current and previous region
4 #C-a c Create a new window (with shell)
5 #C-a n|Space Switch to the next window.
6 #C-a p|Backspace Switch to the previous window.
7 #C-a 0 Switch to window 0 (similar for 1-9).
8 #C-a a Sends Ctrl+a to the current window
9 #C-a d Detach from the current screen session, and leave it running.
10 #C-a Q Close all regions but the current one
11 #C-a X Close the current region
12 #C-a | Split current region vertically into two regions
13 #Read more from manpage
15 # the following two lines give a two-line status, with the current window highlighted
16 hardstatus alwayslastline
17 hardstatus string "%{= G}%-Lw%{+b .Y}%50>[ %n*%f %t ]%{= G}%+Lw%< %{= G}%-=[ %c:%s %D, %m/%d/%Y ]"
19 # restore the original content when exiting screen
29 attrcolor b ".I" # Allow bold colors - necessary for some reason
30 terminfo xterm*|rxvt|urxvt ti@:te@
31 #termcapinfo xterm*|rxvt|urxvt ti@:te@
32 termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
35 # mouse tracking allows to switch region focus by clicking
36 mousetrack on # Don't work on MacOS