exe/helpline in helpline-0.1.2 vs exe/helpline in helpline-0.1.3
- old
+ new
@@ -186,20 +186,20 @@
if inputchars == "\e"
# process ESC
elsif inputchars[0] == "\e" && inputchars.length == 2
# 何もしない
- elsif inputchars == "\x06" || inputchars == "\e[C"
+ elsif inputchars == "\x06" || inputchars == "\e[C" || inputchars == "\eOC"
# Curses.right
inputchars = ''
- elsif inputchars == "\x02" || inputchars == "\e[D"
+ elsif inputchars == "\x02" || inputchars == "\e[D" || inputchars == "\eOD"
# Curses.left
inputchars = ''
- elsif inputchars == "\x0e" || inputchars == "\e[B"
+ elsif inputchars == "\x0e" || inputchars == "\e[B" || inputchars == "\eOB"
Curses.down
sel = (sel + 1) if sel < LINES-1
inputchars = ''
- elsif inputchars == "\x10" || inputchars == "\e[A"
+ elsif inputchars == "\x10" || inputchars == "\e[A" || inputchars == "\eOA"
Curses.up
sel = sel - 1 if sel > 0
inputchars = ''
else
inputchars = ''