diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2008-08-04 18:42:10 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2008-08-04 18:42:10 +0000 |
commit | 406b4c3a38a92a6d3c6943554a27ea301ae4044f (patch) | |
tree | 0cf566e372443373e0f6dbb790c4875d5b7ce084 /games/boggle | |
parent | 66c541f44b2b5387a5edf0d4d4addce683a071f9 (diff) |
Accept 'q' or 'Q' for quit at the --More-- prompt.
Diffstat (limited to 'games/boggle')
-rw-r--r-- | games/boggle/boggle/prtable.c | 11 |
1 files changed, 9 insertions, 2 deletions
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); } |