summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraristocratos <gnmjpl@gmail.com>2020-07-07 12:35:48 +0200
committeraristocratos <gnmjpl@gmail.com>2020-07-07 12:35:48 +0200
commit900cdc0a71c016a07cc4cafd4d3d5f9b36090d57 (patch)
tree91c1d07b4fc4f18e75a1227e093b68bca959ae9f
parenta21fac6b841f5b63eab568420d5f5d456027cbe5 (diff)
Added support for application cursor mode input
-rwxr-xr-xbashtop8
1 files changed, 4 insertions, 4 deletions
diff --git a/bashtop b/bashtop
index eb71a67..94fb246 100755
--- a/bashtop
+++ b/bashtop
@@ -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" ;;