screenでUTF-8とEUC-JPを切替える
- ■まずはUTF-8のlocaleを作る
- #dpkg-reconfigure locales
- ■ロケールがちゃんとできたかチェック
- $locale -a | grep ja_JP
- ■screenの設定
- $ vi ~/.screenrc
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'"
- ■screenの設定ファイルを再読み込み
- ctrl+z : source $HOME/.scrennrc