# Set a reattach password. # To generate the crypted password for below: # Hit Ctl+a ':', then type "password" and hit enter. # Follow the on screen prompts. NOTE: The password is immediately active. # Press Ctl+a ']'. The crypted password is shown on screen. # Replace the 'CRYPTED_PASSWORD' text below with the crypted password shown. # password CRYPTED_PASSWORD # Use a custom shell rather than the one in $SHELL. # The '-' prefix makes the shell a login/interactive shell. shell -/bin/bash # Change how screen operates. deflogin on defscrollback 100000 defutf8 on # Change the output from screen. startup_message off vbell off bell_msg "^GBell in window %n - %t" vbell_msg "Bell in window %n - %t" # Linux console doesn't support underlining, so use a colour attribute instead. attrcolor u "-u c" # Use a custom hardstatus line. # No hostname, no clock: hardstatus alwayslastline "%{=b B} %-w%{=b R}%40L>%n %t%{=b B}%+w%<" # No hostname, with clock: hardstatus alwayslastline "%{=b B}%01=%-w%40L>%{=b R}%n %t%{=b B}%+w%-09= %{= w}| %{= Y}%c " # With hostname, with clock: hardstatus alwayslastline "%{= g}%01=%H%011= %{= w}|%014=%{=b B}%-w%40L>%{=b R}%n %t%{=b B}%+w%-09= %{= w}| %{= Y}%c" # Rebind keys. bind ^k bind k bind K kill bind ^\ bind \\ quit # Start window numbering from 1, not 0. screen 1 bind c screen 1 bind ^c screen 1 bind 0 select 10