Skip to content

Commit

Permalink
Add support for arrows keys when term in application mode (#668)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowspawn authored Apr 24, 2021
1 parent 7c60300 commit a58da13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/n
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit a58da13

Please sign in to comment.