summaryrefslogtreecommitdiffstats
path: root/ui/ncurses/ps3-main.c
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-10-11 15:16:39 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-10-11 15:16:39 +0800
commitbf8d7e61a8fbc19be5ea1a73b9eaa30e58453d1f (patch)
tree4be76c47ef059485db563f76e0b0c8d31f6e9934 /ui/ncurses/ps3-main.c
parent03d135e3d7528184062cc16949febd76c393c30d (diff)
downloadtalos-petitboot-bf8d7e61a8fbc19be5ea1a73b9eaa30e58453d1f.tar.gz
talos-petitboot-bf8d7e61a8fbc19be5ea1a73b9eaa30e58453d1f.zip
ui/ncurses: Use 'x' as exit key
Because terminals will send escape-sequences starting with escape, ncurses will pause after receiving a signle escape, to detect these sequences. This introduces a 1-second delay when exiting the petitboot UI. Instead, use 'x'. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/ncurses/ps3-main.c')
-rw-r--r--ui/ncurses/ps3-main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/ncurses/ps3-main.c b/ui/ncurses/ps3-main.c
index 9efba3b..c4a3892 100644
--- a/ui/ncurses/ps3-main.c
+++ b/ui/ncurses/ps3-main.c
@@ -343,7 +343,7 @@ static int ps3_svm_to_mm_cb(struct pmenu_item *item)
}
/**
- * ps3_svm_to_mm_helper - The svm ESC callback.
+ * ps3_svm_to_mm_helper - The svm exit callback.
*/
static void ps3_svm_to_mm_helper(struct pmenu *menu)
@@ -421,7 +421,7 @@ static struct pmenu *ps3_mm_init(struct ps3_cui *ps3_cui)
m->scr.frame.title = talloc_strdup(m, "Petitboot PS3");
#endif
m->scr.frame.help = talloc_strdup(m,
- "ESC=exit, Enter=accept, e=edit, o=open");
+ "Enter=accept, e=edit, o=open, x=exit");
m->scr.frame.status = talloc_strdup(m, "Welcome to Petitboot");
i = pmenu_item_init(m, 0, "Boot GameOS");
@@ -472,7 +472,7 @@ static struct pmenu *ps3_svm_init(struct ps3_cui *ps3_cui)
m->hot_key = ps3_hot_key;
m->scr.frame.title = talloc_strdup(m, "Select PS3 Video Mode");
- m->scr.frame.help = talloc_strdup(m, "ESC=exit, Enter=accept");
+ m->scr.frame.help = talloc_strdup(m, "Enter=accept, x=exit");
i = pmenu_item_init(m, 0, "auto detect");
i->on_execute = ps3_svm_cb;
OpenPOWER on IntegriCloud