From: millert Date: Mon, 4 Aug 2008 18:42:09 +0000 (+0000) Subject: Accept 'q' or 'Q' for quit at the --More-- prompt. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=88f09ae600472050df063c6812e744bfe3aa9249;p=openbsd Accept 'q' or 'Q' for quit at the --More-- prompt. --- diff --git a/games/boggle/boggle/prtable.c b/games/boggle/boggle/prtable.c index 7aed14ade04..d06329e0a74 100644 --- a/games/boggle/boggle/prtable.c +++ b/games/boggle/boggle/prtable.c @@ -1,4 +1,4 @@ -/* $OpenBSD: prtable.c,v 1.10 2008/03/20 12:02:27 millert Exp $ */ +/* $OpenBSD: prtable.c,v 1.11 2008/08/04 18:42:09 millert Exp $ */ /* $NetBSD: prtable.c,v 1.2 1995/03/21 12:14:42 cgd Exp $ */ /*- @@ -108,7 +108,14 @@ prtable(char **base, int num, int d_cols, int width, attron(A_REVERSE); printw("--More--"); attroff(A_REVERSE); - while (inputch() != ' '); + do { + j = inputch(); + } while (j != ' ' && j != 'q' && j != 'Q'); + if (j == 'q' || j == 'Q') { + move(row + 1, 0); + wclrtoeol(stdscr); + break; + } move(LIST_LINE, LIST_COL); wclrtobot(stdscr); }