
簡單的問題。這是我的帶有綁定鍵的 bashrc
# Binds
bind '"\e[3~": delete-char'
bind '"\e[F~": end-of-line'
bind '"\e[19~":"~"'
刪除字元工作正常~工作正常,當我按 F9 時出現但是當我按“END”而不是轉到行尾時,它會列印此內容
[F[F[F[F
如何將END鍵綁定到行尾?
答案1
找到解決方案。在具有正確配置金鑰的系統上,我這樣做了
bind -P|grep -i end-of-line
我可以看到正確的配置
end-of-line can be found on "\C-e", "\eOF", "\e[4~", "\e[F".
所以我在 Sco 上編輯我的 bashrc
bind '"\e[F": end-of-line'
工作正常。