]> git.ozlabs.org Git - petitboot/commitdiff
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)
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>

No differences found