From 31a4ae589ecc11deb8999cd07c97293d681bfadb Mon Sep 17 00:00:00 2001 From: Wichert Akkerman Date: Mon, 16 Jul 2001 11:30:46 +0000 Subject: [PATCH] Improve some help texts and helpscreen keybindings --- dselect/basecmds.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/dselect/basecmds.cc b/dselect/basecmds.cc index 853f2875..6ed995b0 100644 --- a/dselect/basecmds.cc +++ b/dselect/basecmds.cc @@ -134,8 +134,7 @@ void baselist::displayhelp(const struct helpmenuentry *helpmenu, int key) { while (++x for next topic, to exit help.")); getyx(stdscr,y,x); while (++xmsg->title)); } mvaddstr(i+4,1, - _("Press a key from the list above, Space to exit help,\n" - " or `.' (full stop) to read each help page in turn. ")); + _("Press a key from the list above, , `q' or `Q' to exit help,\n" + " or to read each help page in turn. ")); nextkey= helpmenu[0].key; } refresh(); key= getch(); if (key == EOF) ohshite(_("error reading keyboard in help")); - if (key == ' ') { + if (key == '\n' || key == '\r' || key == KEY_ENTER || key == 'q' || key == 'Q') { break; - } else if (key == '?') { + } else if (key == '?' || key == 'h') { key= 0; - } else if (key == '.') { + } else if (key == ' ' || key == '.') { key= nextkey; } } -- 2.39.5