我想使用home,end,delete,pageup,分页和ksh。我的术语是xterm-color。这些键对tcsh和zsh很好,但对ksh却不起作用(打印一个tilda ~)
我发现了这个:
bind '^[[3'=prefix-2
bind '^[[3~'=delete-char-forward
bind '^[[1'=prefix-2
bind '^[[1~'=beginning-of-line
bind '^[[4'=prefix-2
bind '^[[4~'=end-of-line但是,当我设置一个绑定键时,最后一个键就不再工作了。
如何用.kshrc在ksh中使用这些密钥?
谢谢。
发布于 2009-10-22 14:29:06
设置-o emacs
应该行得通。
发布于 2013-07-17 03:38:01
我用这个资源和其他资源创建了一个文件(比如键、函数、颜色和名为.ksh_logout的ksh中类似的.ksh_logout)。
查看github:https://bitbucket.org/afsec/dotfiles中的dotfiles存储库,.ksh_keys文件的内容。
# Activate Delete
bind '^[[3~'=delete-char-forward
# Activate Home
bind '^[[1~'=beginning-of-line
# Activate End
bind '^[[4~'=end-of-linehttps://serverfault.com/questions/73810
复制相似问题