# 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"
rendition bell =b y
rendition monitor =b g
rendition silence =b c
# 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
bind s
bind q select 11
bind w select 12
bind e select 13
bind r select 14
bind t select 15
bind y select 16
bind u select 17
bind i select 18
bind o select 19
# bind p select 20

# Start window numbering from 1, not 0.
bind c screen 1
bind ^c screen 1
bind 0 select 10

# Allow remote 'screen' command in all windows.
# aclchg :window: +x "#screen"
# To open a new screen remotely:
# echo -ne "\e]83;screen 1 <cmd>^G"  # Where ^G is a literal Ctl+G
