ui/ncurses: Handle arrow key variants
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:23:05 +0000 (14:23 +1100)
commit33a0f544151f44bb58924ad281aaca2dc58fe561
tree6338043a97f91fd81f99ded4c14d88e4d6e487d5
parent3a76e4214d5ca666e1d2d6c74e84309064c8a3ab
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>
ui/ncurses/nc-cui.c