summaryrefslogtreecommitdiffstats
path: root/gnu/lib
diff options
context:
space:
mode:
authoreric <eric@FreeBSD.org>2001-08-09 01:14:09 +0000
committereric <eric@FreeBSD.org>2001-08-09 01:14:09 +0000
commit50b51a574f6a7bf8215c4fcef21311db58ebf4c4 (patch)
treecdff114bef72f5f43cb36bb91ee13c5fcc466705 /gnu/lib
parenta906539d9eb092ad225bc3491a19811fc201fb2a (diff)
downloadFreeBSD-src-50b51a574f6a7bf8215c4fcef21311db58ebf4c4.zip
FreeBSD-src-50b51a574f6a7bf8215c4fcef21311db58ebf4c4.tar.gz
Handle keys consistently.
Diffstat (limited to 'gnu/lib')
-rw-r--r--gnu/lib/libdialog/msgbox.c6
-rw-r--r--gnu/lib/libdialog/notify.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/gnu/lib/libdialog/msgbox.c b/gnu/lib/libdialog/msgbox.c
index a544652..ac0e7e6 100644
--- a/gnu/lib/libdialog/msgbox.c
+++ b/gnu/lib/libdialog/msgbox.c
@@ -18,6 +18,10 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#ifndef lint
+static const char rcsid[] =
+ "$FreeBSD$";
+#endif
#include <dialog.h>
#include "dialog.priv.h"
@@ -182,7 +186,7 @@ dialog_mesgbox(unsigned char *title, unsigned char *prompt, int height, int widt
print_perc(dialog, height-3, width-9, (float) (startline+theight)/max_lines);
wmove(dialog, height-2, width/2-3);
wrefresh(dialog);
- while ((key != ESC) && (key != '\n') && (key != '\r')) {
+ while ((key != ESC) && (key != '\n') && (key != '\r') && (key != ' ')) {
key = wgetch(dialog);
switch(key) {
case KEY_HOME:
diff --git a/gnu/lib/libdialog/notify.c b/gnu/lib/libdialog/notify.c
index 052ee8f..50bed6b 100644
--- a/gnu/lib/libdialog/notify.c
+++ b/gnu/lib/libdialog/notify.c
@@ -17,6 +17,10 @@
*
*/
+#ifndef lint
+static const char rcsid[] =
+ "$FreeBSD$";
+#endif
#include <dialog.h>
#include <stdio.h>
@@ -37,7 +41,7 @@ dialog_notify(char *msg)
exit(1);
}
tmphlp = get_helpline();
- use_helpline("Press enter to continue");
+ use_helpline("Press enter or space");
dialog_mesgbox("Message", msg, -1, -1);
restore_helpline(tmphlp);
touchwin(w);
OpenPOWER on IntegriCloud