.screenrc

escape    ^w^w    # コマンドキーとリテラルキーは "Ctl + w"

startup_message    off    # 起動メッセージをオフ

vbell       off   # visulal bellオフ
deflogin    on    # ログインを抑制
autodetach  on    # 自動的にデタッチ
defflow     off   # フロー制御しない

# ウィンドウの文字コードの変更
bind ^U encoding utf8
bind ^E encoding euc

hardstatus alwayslastline "%{= wk}%-w%{= dw} %n%f* %t %{-}%+w "

.bashrc

## タイトルに現在のディレクトリを表示
case $TERM in              
  screen)
  PROMPT_COMMAND='echo -ne "\033k[$(pwd | sed "s#^$HOME#\~#;s#^\(\~*/[^/]*/\).*\(/[^/]*\)#\1...\2#")]\033\\"'
  ;;
esac