AS4 and AS5 key maps

来源:互联网 发布:二战历史类书籍 知乎 编辑:程序博客网 时间:2024/06/15 19:12

On the AS4 box, you may use the right arrow key to move the cursor around, but on AS5, you may find it echo back something like this.

   ‘alt+left/right’ result in adding character  ‘[D’ and ‘[C’

  echo ab  d cd   [D[D[C[C

But you can try the following.

ALT + b : Backward

ALT + f: Forward


To follow up

Is there any way to map‘alt+b/f’ to ‘alt+left/right’ ?


set-o vi # I assume alt + left/right will work

set -o emacs # this is how alt + b/f works


And it continues.

but tried, this is necessary to work in emacs


Just tried, alt +left/right won't work in both modes without this (on AS5):

bind '"\e[1;3D":backward-word'
bind '"\e[1;3C":forward-word'



原创粉丝点击