summaryrefslogtreecommitdiffstats
path: root/boggle
diff options
context:
space:
mode:
Diffstat (limited to 'boggle')
-rw-r--r--boggle/boggle/mach.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/boggle/boggle/mach.c b/boggle/boggle/mach.c
index e8a481c2..aaaacbbb 100644
--- a/boggle/boggle/mach.c
+++ b/boggle/boggle/mach.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mach.c,v 1.17 2007/12/15 19:44:39 perry Exp $ */
+/* $NetBSD: mach.c,v 1.18 2008/08/08 16:10:47 drochner Exp $ */
/*-
* Copyright (c) 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)mach.c 8.1 (Berkeley) 6/11/93";
#else
-__RCSID("$NetBSD: mach.c,v 1.17 2007/12/15 19:44:39 perry Exp $");
+__RCSID("$NetBSD: mach.c,v 1.18 2008/08/08 16:10:47 drochner Exp $");
#endif
#endif /* not lint */
@@ -558,7 +558,10 @@ prompt(const char *mesg)
static int
tty_setup(void)
{
- initscr();
+ if (!initscr()) {
+ fprintf(stderr, "couldn't initialize screen\n");
+ exit (0);
+ }
raw();
noecho();