tsukkee /.screenrc

2010/04/17 repository http://github.com/tsukkee/config/
# options
autodetach on
zombie "q^M"
startup_message off
vbell off
escape ^Ff
defscrollback 10000
altscreen on

# encoding
defutf8 on
defencoding utf-8

# displays
bell_msg "Bell in window %."
activity "Activity in window %."

# caption and hardstatus
caption always "%?%F%{= Bk}%:%{= Kw}%? %-Lw%40L>%?%F%{b db}%:%{b kW}%? %n %t %{-}%+Lw%="
hardstatus alwayslastline "%{= kG} %?%h%:Screen #%n %t in %S%?%=%Y/%m/%d %c:%s  "

# prevent windows size change with iTerm
# (avoid "Aborted because of window size chage")
# This setting is no longer needed. Instead of this,
# check "Disable session-initiated window resizing" in Terminal Profiles
termcapinfo xterm* 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l'

# term
defbce on
term xterm-256color
# term rxvt-256color

# key bindings
bind U eval "encoding utf-8" "!!!echo 'export LANG=ja_JP.UTF-8'"
bind E eval "encoding euc" "!!!echo 'export LANG=ja_JP.EUC-JP'"
bind S eval "encoding sjis" "!!!echo 'export LANG=ja_JP.Shift_JIS'"

bind C screen -T xterm
bind K kill

bind k focus up
bind j focus down
bind h focus left
bind l focus right

bind s eval split focus next next
bind v eval "split -v" focus next next

bind = resize =
bind - resize -1
bind + resize +1
bind _ resize max
bind ^R eval 'echo -p "\^\^R%080="' 'command -c region'
bind -c region + eval 'resize +1' 'command -c region'
bind -c region - eval 'resize -1' 'command -c region'

bind N eval "number $WINDOW+1"
bind P eval "number $WINDOW-1"

source $HOME/.screenrc.local