]> git.ozlabs.org Git - petitboot/commit
ui/ncurses: Handle arrow key variants v1.6.4
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Mon, 20 Nov 2017 01:59:26 +0000 (12:59 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 21 Nov 2017 03:46:18 +0000 (14:46 +1100)
commit3af2c04787af928b296079a7e10388fe5958bd8b
treee8070661411a319b72eb4583531561994a626a11
parentbc8b183fbea66e41b23cfd5e7e5e7204a76b0629
ui/ncurses: Handle arrow key variants

In the vt100 'application' cursor mode arrow keys produce ^[Ox rather
than the usual ^[[x. Add this pattern to our defined keys so we don't
accidentally catch the escape key.

For reference:
http://www.tldp.org/HOWTO/Keyboard-and-Console-HOWTO-21.html

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
(cherry picked from commit 33a0f544151f44bb58924ad281aaca2dc58fe561)
ui/ncurses/nc-cui.c