# .screenrc
# cayla fauver <[email protected]>
# Created: Sat Sep 17, 2005  07:57PM

hardstatus off
caption always "%?%F%{= wk} * %:%{=u Kk}%? "
hardstatus alwayslastline "%{= kr} %-Lw%{= wk} %n%f %t %{-}%+Lw %=%{= dd} %-041=%{+b ky} %l %{= kw}| %{+b kg}%C%a %D %d %M %Y%{= db}"

activity "%c activity -> %n%f %t"
bell "%c bell -> %n%f %t^G"
vbell_msg " *beep* "
silencewait 15
startup_message off
deflogin on
autodetach on
shell -$SHELL
vbell off
zombie cr
verbose on
defscrollback 5000
defutf8 on
nonblock on
term xterm-256color
# http://stackoverflow.com/questions/810025/unable-to-use-screen-efficiently-in-macs-terminal/3423480#3423480
termcapinfo xterm-256color|xterm-color|xterm|xterms|xs|rxvt ti@:te@
# Window numbering starts at 1, not 0.
bind c screen 1
bind 0 select 10
bind '^k'
bind 'K' kill
bind 'L'
bind 'I' login on
bind 'O' login off
bind = resize =
bind _ resize max
bind + resize +1
bind - resize -1
bind j focus down
bind k focus up
bindkey -k F2 next
bindkey -k F1 prev

bindkey "^[k" eval "copy" "stuff ^b"  # enter copy mode and move up one page
bindkey "^k" eval "copy" "stuff k"    # enter copy mode and move up one line
bindkey -m "^[k" stuff ^b             # move up one page
bindkey -m "^k" stuff k               # move up one line

screen 1
#screen -t htop 8 sudo htop
screen -t root 9 sudo -i
select 1