mirror of
https://github.com/tj/n.git
synced 2024-11-25 07:39:21 +01:00
Add support for arrows keys when term in application mode (#668)
This commit is contained in:
parent
7c603007fa
commit
a58da13c66
3
bin/n
3
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")
|
||||
|
Loading…
Reference in New Issue
Block a user