summaryrefslogtreecommitdiffstats
path: root/sail/pl_7.c
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2000-01-31 11:08:53 +0000
committerjsm <jsm@NetBSD.org>2000-01-31 11:08:53 +0000
commit6cae48fc1385a719306c24ffa5d5b3bf36682485 (patch)
treeb4bf29458057b7f6d9260c7e275f6cc18411ae63 /sail/pl_7.c
parent2b1dc8b573de09c348628cf0e9671e7bd92ded20 (diff)
downloadbsdgames-darwin-6cae48fc1385a719306c24ffa5d5b3bf36682485.tar.gz
bsdgames-darwin-6cae48fc1385a719306c24ffa5d5b3bf36682485.tar.zst
bsdgames-darwin-6cae48fc1385a719306c24ffa5d5b3bf36682485.zip
Don't initialise curses until after the initial non-curses setup (the
choice of scenario uses puts() rather than curses functions).
Diffstat (limited to 'sail/pl_7.c')
-rw-r--r--sail/pl_7.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sail/pl_7.c b/sail/pl_7.c
index ad665bd2..db229d1c 100644
--- a/sail/pl_7.c
+++ b/sail/pl_7.c
@@ -1,4 +1,4 @@
-/* $NetBSD: pl_7.c,v 1.13 1999/12/28 18:05:25 jsm Exp $ */
+/* $NetBSD: pl_7.c,v 1.14 2000/01/31 11:08:53 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)pl_7.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: pl_7.c,v 1.13 1999/12/28 18:05:25 jsm Exp $");
+__RCSID("$NetBSD: pl_7.c,v 1.14 2000/01/31 11:08:53 jsm Exp $");
#endif
#endif /* not lint */
@@ -80,6 +80,10 @@ struct shipspecs *mc; /* ms->specs */
void
initscreen()
{
+ if (!SCREENTEST()) {
+ printf("Can't sail on this terminal.\n");
+ exit(1);
+ }
/* initscr() already done in SCREENTEST() */
view_w = newwin(VIEW_Y, VIEW_X, VIEW_T, VIEW_L);
slot_w = newwin(SLOT_Y, SLOT_X, SLOT_T, SLOT_L);