# /etc/screenrc
#
#   This is the system wide screenrc.
#
#   You can use this file to change the default behavior of screen system wide
#   or copy it to ~/.screenrc and use it as a starting point for your own
#   settings.
#
#   Commands in this file are used to set options, bind screen functions to
#   keys, redefine terminal capabilities, and to automatically establish one or
#   more windows at the beginning of your screen session.
#
#   This is not a comprehensive list of options, look at the screen manual for
#   details on everything that you can put in this file.
#

# ------------------------------------------------------------------------------ #
# SCREEN SETTINGS                                                                #
# ------------------------------------------------------------------------------ #

altscreen on
autodetach on
defscrollback 65536
defmousetrack on
termcapinfo xterm* ti@:te@
startup_message off
vbell off

# ------------------------------------------------------------------------------ #
# SCREEN KEYBINDINGS                                                             #
# ------------------------------------------------------------------------------ #

bindkey -k k1 select 0
bindkey -k k2 select 1
bindkey -k k3 select 2
bindkey -k k4 select 3
bindkey -k k5 select 4
bindkey -k k6 select 5
bindkey -k k7 select 6
bindkey -k k8 select 7
bindkey -k k9 select 8
bindkey -k F1 prev
bindkey -k F2 next

bindkey "^[[5~" eval 'copy' 'stuff ^b'
bindkey "^[[6~" eval 'copy' 'stuff ^f'

# ------------------------------------------------------------------------------ #
# TERMINAL SETTINGS                                                              #
# ------------------------------------------------------------------------------ #

hardstatus on
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-w%?%{r}(%{W}%n %t%?(%u)%?%{r})%{w}%?%+w%?%?%= %{g}][%{B} %d. %M %{W}%c %{g}]'

# ------------------------------------------------------------------------------ #
# STARTUP SCREENS                                                                #
# ------------------------------------------------------------------------------ #
