Skip to content

GNU Screen cheatsheet

Shortcuts

Split screen

  • C-a S split display horizontally
  • C-a | split display vertically
  • C-a tab jump to next display region
  • C-a X remove current region
  • C-a Q remove all regions but the current one

Logging

Enable screen logging

screen -L

Enable logging in .screenrc

logfile screen-output.%Y-%m-%d.log                                              
logfile flush 1                                                                 
logtstamp on                                                                    
logtstamp after 5                                                               
deflog on 

Configuration

Scroll with mouse (add to .screenrc)

termcapinfo xterm* ti@:te@

Example .screenrc

hardstatus alwayslastline 
startup_message off 
hardstatus string '%{wk}%?%-Lw%?%{=b kR}(%{W}%n %t%?(%u)%?%{=b kR})%{= w}%?%+Lw%?%? %{g}]%{W}'
termcapinfo xterm* ti@:te@
scrollback 10000
defshell -zsh