### screen customization ###
# wowoto
############################
# 关闭启动画面
startup_message off # default: on
# Automatically detach on hangup, or the screen will keep eating your memory after the terminal emulator has been terminated.
autodetach on # default: on
# 打开vbell
vbell on
# 指定 shell
shell bash
# 默认开始路径为~
# chdir
# 定义回滚行数
defscrollback 10000
# 指定编码
defencoding utf-8
encoding utf-8 utf-8
# 定制 caption
caption always "%{=b}%{b}%{C}[stream]%{-} %+010=%-w%8L>%{uB .my}*%n %t%{-}%+w%-014< %-012=%{b m}%m-%d %c "
# 定制 title bar
term rxvt
termcapinfo rxvt 'hs:ts=/E]2;:fs=/007:ds=/E]2;screen/007'
### ====== 键绑定 ======
# 将快捷键默认 C-a 设为 C-l
escape ^X^X
# 定制 region 函数键与Emacs一致
bind 2 split
bind o focus
bind 1 only
bind 0 remove
# bind F7 to create a new screen
bindkey -k k7 screen
# bind F8 to kill current screen window
bindkey -k k8 kill
# bind F9 to detach screen session
bindkey -k k9 detach
# bind F11 to "move to previous window"
bindkey -k F1 prev
# bind F12 to "move to next window"
bindkey -k F2 next
### ====== 键绑定 ======