]> git.ozlabs.org Git - petitboot/commit
ui/ncurses: Always provide a key definition for backtab
authorJeremy Kerr <jk@ozlabs.org>
Tue, 15 Apr 2014 03:48:00 +0000 (11:48 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Wed, 16 Apr 2014 01:08:45 +0000 (09:08 +0800)
commita1fb38f17bfa60aac89d0dd21dd8ccc739d794bf
tree4930394c42ed0bd505361e379bee264db1da4a30
parent5171b1c54fc57b6f1963e2482cfc07587296100d
ui/ncurses: Always provide a key definition for backtab

Petitboot environments will probably want a basic terminfo defintion
(eg, vt220) rather than a full linux or xterm, but vt220 and friends
don't define a backtab key. Backtab can be useful for proper form
navigation, and without a key definition, we just get an escape, which
exits the current screen.

This change provides a static definition for KEY_BTAB, so we should
always have one available.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
ui/ncurses/nc-cui.c