|
|
RT,按字母“Y”打出“Z”,按“Z”打出“Y”
字母以外的键更加乱
目前无法输入““”,”/“,“:”等,也就是连vi也用不了,异常郁闷
请问大家应该怎么办
/etc/inputrc
- # Begin /etc/inputrc
- # Modified by Chris Lynn <roryo@roryo.dynup.net>
- # Allow the command prompt to wrap to the next line
- set horizontal-scroll-mode Off
- # Enable 8bit input
- set meta-flag On
- set input-meta On
- # Turns off 8th bit stripping
- set convert-meta Off
- # Keep the 8th bit for display
- set output-meta On
- # none, visible or audible
- set bell-style none
- # All of the following map the escape sequence of the
- # value contained inside the 1st argument to the
- # readline specific functions
- "\eOd": backward-word
- "\eOc": forward-word
- # for linux console
- "\e[1~": beginning-of-line
- "\e[4~": end-of-line
- "\e[5~": beginning-of-history
- "\e[6~": end-of-history
- "\e[3~": delete-char
- "\e[2~": quoted-insert
- # for xterm
- "\eOH": beginning-of-line
- "\eOF": end-of-line
- # for Konsole
- "\e[H": beginning-of-line
- "\e[F": end-of-line
- # End /etc/inputrc
复制代码
/etc/profile
- # Begin /etc/profile
- export LANG=C
- #export LANG=en_US 一样
- #export LANG=zh_CN.UTF8 一样
- export INPUTRC=/etc/inputrc
- # End /etc/profile
复制代码
涉及编码部分的代码
- mkdir -pv /usr/lib/locale
- localedef -i en_US -f ISO-8859-1 en_US
- localedef -i en_US -f UTF-8 en_US.UTF-8
- localedef -i ja_JP -f EUC-JP ja_JP
- localedef -i zh_CN -f GB18030 zh_CN
- localedef -i zh_CN -f GBK zh_CN
- localedef -i zh_CN -f UTF-8 zh_CN
- localedef -i zh_CN -f GB2312 zh_CN
- localedef -i zh_HK -f UTF-8 zh_CN
- localedef -i zh_HK -f BIG5-HKSCS zh_CN
- localedef -i zh_TW -f EUC_TW zh_CN
- localedef -i zh_TW -f UTF-8 zh_CN //failed
- localedef -i zh_TW -f BIG5 zh_CN
复制代码 |
|