summaryrefslogtreecommitdiff
path: root/fzy.c
diff options
context:
space:
mode:
Diffstat (limited to 'fzy.c')
-rw-r--r--fzy.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/fzy.c b/fzy.c
index f99d735..10a5a7d 100644
--- a/fzy.c
+++ b/fzy.c
@@ -198,6 +198,16 @@ void run(tty_t *tty){
}else if(ch == 10){ /* Enter */
clear(tty);
emit(tty);
+ }else if(ch == 27){ /* ESC */
+ ch = tty_getchar(tty);
+ if(ch == '['){
+ ch = tty_getchar(tty);
+ if(ch == 'A'){ /* UP ARROW */
+ action_prev();
+ }else if(ch == 'B'){ /* DOWN ARROW */
+ action_next();
+ }
+ }
}
}while(1);
}