diff options
author | aristocratos <gnmjpl@gmail.com> | 2020-07-07 12:35:48 +0200 |
---|---|---|
committer | aristocratos <gnmjpl@gmail.com> | 2020-07-07 12:35:48 +0200 |
commit | 900cdc0a71c016a07cc4cafd4d3d5f9b36090d57 (patch) | |
tree | 91c1d07b4fc4f18e75a1227e093b68bca959ae9f | |
parent | a21fac6b841f5b63eab568420d5f5d456027cbe5 (diff) |
Added support for application cursor mode input
-rwxr-xr-x | bashtop | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -4357,10 +4357,10 @@ get_key() { #? Get one key from standard input and translate key code to readabl if [[ -z $key && $esc -eq 1 ]]; then key="escape" elif [[ $esc -eq 1 ]]; then case "${key}" in - '[A'*) key="up" ;; - '[B'*) key="down" ;; - '[D'*) key="left" ;; - '[C'*) key="right" ;; + '[A'*|'OA'*) key="up" ;; + '[B'*|'OB'*) key="down" ;; + '[D'*|'OD'*) key="left" ;; + '[C'*|'OC'*) key="right" ;; '[2~') key="insert" ;; '[3~') key="delete" ;; '[H'*) key="home" ;; |