From a58da13c66abe68e45c3e461af5760c63e23ec0e Mon Sep 17 00:00:00 2001 From: John Gee Date: Sun, 25 Apr 2021 10:02:14 +1200 Subject: [PATCH] Add support for arrows keys when term in application mode (#668) --- bin/n | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/n b/bin/n index e5e99f4..dbb70ca 100755 --- a/bin/n +++ b/bin/n @@ -534,7 +534,8 @@ menu_select_cache_versions() { "$ESCAPE_SEQ") # Handle ESC sequences followed by other characters, i.e. arrow keys read -rsn 1 -t 1 tmp - if [[ "$tmp" == "[" ]]; then + # See "[" if terminal in normal mode, and "0" in application mode + if [[ "$tmp" == "[" || "$tmp" == "O" ]]; then read -rsn 1 -t 1 arrow case "$arrow" in "$UP")