使用putty登陸suse,命令行下無法用"home"、“end” 鍵

根據版本應該有兩種解決方法,我用的是putty0.6的,Linux 2.6.31.5-0.1-desktop

1、putty -> Connection -> Data -> Terminal type string 改成 Linux

2、putty0.6版本

1)putty->Terminal ->Keyboard->The home and End keys 改成Standard

2)putty->Terminal ->Keyboard->The function keys and keypad 改成SCO


分析與總結:

個人分析應該是linux系統鍵盤編碼和putty鍵盤編碼兼容不好造成的,suse鍵盤編碼文件是/etc/inputrc

部分代碼如下:
# 
# Common standard keypad and cursor
#
"\e[1~":        beginning-of-line
"\e[2~":        yank
"\e[3~":        delete-char
"\e[4~":        end-of-line
"\e[5~":        history-search-backward
"\e[6~":        history-search-forward


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章