From eb84be870e52321cf9ea55ad5c8272e739460967 Mon Sep 17 00:00:00 2001 From: Eric Melville Date: Thu, 9 Aug 2001 01:14:09 +0000 Subject: Handle keys consistently. --- gnu/lib/libdialog/msgbox.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gnu/lib/libdialog/msgbox.c') diff --git a/gnu/lib/libdialog/msgbox.c b/gnu/lib/libdialog/msgbox.c index a544652a356c..ac0e7e6fd4bc 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 #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: -- cgit v1.3