Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/sail Don't initialise curses until after the initial n...



details:   https://anonhg.NetBSD.org/src/rev/f1a076c485f4
branches:  trunk
changeset: 481433:f1a076c485f4
user:      jsm <jsm%NetBSD.org@localhost>
date:      Mon Jan 31 11:08:53 2000 +0000

description:
Don't initialise curses until after the initial non-curses setup (the
choice of scenario uses puts() rather than curses functions).

diffstat:

 games/sail/pl_7.c    |  8 ++++++--
 games/sail/pl_main.c |  8 ++------
 2 files changed, 8 insertions(+), 8 deletions(-)

diffs (58 lines):

diff -r 2ae17cd660f5 -r f1a076c485f4 games/sail/pl_7.c
--- a/games/sail/pl_7.c Mon Jan 31 10:39:26 2000 +0000
+++ b/games/sail/pl_7.c Mon Jan 31 11:08:53 2000 +0000
@@ -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 @@
 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);
diff -r 2ae17cd660f5 -r f1a076c485f4 games/sail/pl_main.c
--- a/games/sail/pl_main.c      Mon Jan 31 10:39:26 2000 +0000
+++ b/games/sail/pl_main.c      Mon Jan 31 11:08:53 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pl_main.c,v 1.7 1999/02/10 00:45:46 hubertf Exp $      */
+/*     $NetBSD: pl_main.c,v 1.8 2000/01/31 11:08:53 jsm Exp $  */
 
 /*
  * Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)pl_main.c  8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: pl_main.c,v 1.7 1999/02/10 00:45:46 hubertf Exp $");
+__RCSID("$NetBSD: pl_main.c,v 1.8 2000/01/31 11:08:53 jsm Exp $");
 #endif
 #endif /* not lint */
 
@@ -53,10 +53,6 @@
 pl_main()
 {
 
-       if (!SCREENTEST()) {
-               printf("Can't sail on this terminal.\n");
-               exit(1);
-       }
        initialize();
        Msg("Aye aye, Sir");
        play();



Home | Main Index | Thread Index | Old Index