hardstatus alwayslastline
# H hostname of the system
# https://www.gnu.org/software/screen/manual/html_node/String-Escapes.html
hardstatus string '%{= kg}[%{G}%H%{g}][%= %{= kw}%-w%{+b yk} %n*%t %{-}%+w %=%{g}][%{W}%c%{g}]'

defscrollback 10000

# http://stackoverflow.com/questions/17868652/screen-how-to-turn-on-alternate-screen
altscreen on

# no welcome message
startup_message off

# all characters cleared will be displayed in the current background color
defbce on

# mouse tracking allows to switch region focus by clicking
mousetrack on

screen ranger

# navigating regions
bind h focus left
bind j focus down
bind k focus up
bind l focus right

# resizing regions
bind -c resize h eval "resize -h -5" "command -c resize"
bind -c resize j eval "resize -v +3" "command -c resize"
bind -c resize k eval "resize -v -3" "command -c resize"
bind -c resize l eval "resize -h +5" "command -c resize"
bind R eval "command -c resize" "echo resize"

# http://aperiodic.net/screen/man:default_key_bindings