screenrc

先日のvimrcと同じくscreenrcも置いておきます.

# .screenrc
# XXX(2010.6.21)

################
#
# 起動キー
#

# 起動キーをzに変更
escape ^z^z

################
#
# キーバインド
#

#remove some stupid / dangerous key bindings
bind k
bind ^k
bind .
bind ^\
bind \\
bind ^h
bind h

#make them better
bind 'K' kill
bind 'I' login on
bind 'O' login off
bind '}' history

# 文字コード:UTF竏・ =>C-c U 
#             EUC-JP =>C-c E
bind 'U' eval "encoding utf8" "stuff 'export LANG=ja_JP.UTF-8\012'"
bind 'E' eval "encoding euc"  "stuff 'export LANG=ja_JP.EUC-JP\012'"

################
#
# その他の諸設定
#

# ハングアップ時のオートデタッチ
autodetach on

# ログファイル
logfile "/your/home/log/screen/%y%m%d"

# 起動時のメッセージ非表示
startup_message off

# ステータスバー表示
hardstatus alwayslastline "screen | %`%-w%{=b bw}%n %t%{-}%+w | "

# emulate .logout message
#pow_detach_msg "Screen session of \$LOGNAME \$:cr:\$:nl:ended."

# 標準出力を保存する長さ
defscrollback 10000

# don't kill window after the process died
# zombie "^["