diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2014-01-31 10:53:57 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2014-01-31 10:59:42 +0800 |
commit | 8c60755607cbade935b1f763dffbf9ee1c38f97a (patch) | |
tree | 15d24fd667aba428bc4a2bf7187da5d5c3a853a4 /ui/ncurses/nc-textscreen.c | |
parent | 4051815230f443ac4b052a4cf0f55a951e3f88c8 (diff) | |
download | talos-petitboot-8c60755607cbade935b1f763dffbf9ee1c38f97a.tar.gz talos-petitboot-8c60755607cbade935b1f763dffbf9ee1c38f97a.zip |
ui/ncurses: Unify key bindings & key help text
This change is a small cleanup of the key bindings; we ensure that the
general key bindings are available (and documented) on all screens.
In order to keep things consistent, this change adds an initial UI
guidelines text file, which documents the general key bindings.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/nc-textscreen.c')
-rw-r--r-- | ui/ncurses/nc-textscreen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/ncurses/nc-textscreen.c b/ui/ncurses/nc-textscreen.c index d5b894e..ad91f61 100644 --- a/ui/ncurses/nc-textscreen.c +++ b/ui/ncurses/nc-textscreen.c @@ -144,6 +144,7 @@ void text_screen_process_key(struct nc_scr *scr, int key) switch (key) { case 'x': + case 27: /* esc */ screen->on_exit(screen->cui); break; case KEY_DOWN: @@ -176,7 +177,7 @@ void text_screen_set_help(struct text_screen *screen, const char *title, { screen->help_title = title; screen->help_text = text; - screen->scr.frame.help = "x=exit h=help"; + screen->scr.frame.help = "x=exit, h=help"; } static int text_screen_post(struct nc_scr *scr) |