From a12bf9a7e0f548ff6f6aaeb075db76da6a0c53c7 Mon Sep 17 00:00:00 2001 From: jsm Date: Sun, 8 Feb 2004 22:21:57 +0000 Subject: [PATCH] Hide the cursor if possible. From OpenBSD. --- games/rain/rain.c | 5 +++-- games/worms/worms.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/games/rain/rain.c b/games/rain/rain.c index 5640de4f1015..25048954ce64 100644 --- a/games/rain/rain.c +++ b/games/rain/rain.c @@ -1,4 +1,4 @@ -/* $NetBSD: rain.c,v 1.15 2004/01/27 20:30:30 jsm Exp $ */ +/* $NetBSD: rain.c,v 1.16 2004/02/08 22:21:57 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)rain.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: rain.c,v 1.15 2004/01/27 20:30:30 jsm Exp $"); +__RCSID("$NetBSD: rain.c,v 1.16 2004/02/08 22:21:57 jsm Exp $"); #endif #endif /* not lint */ @@ -98,6 +98,7 @@ main(argc, argv) (void)signal(SIGTSTP, onsig); (void)signal(SIGTERM, onsig); + curs_set(0); for (j = 4; j >= 0; --j) { xpos[j] = random() % cols + 2; ypos[j] = random() % lines + 2; diff --git a/games/worms/worms.c b/games/worms/worms.c index 23c0e1783018..c3bca4450983 100644 --- a/games/worms/worms.c +++ b/games/worms/worms.c @@ -1,4 +1,4 @@ -/* $NetBSD: worms.c,v 1.13 2004/01/27 20:30:31 jsm Exp $ */ +/* $NetBSD: worms.c,v 1.14 2004/02/08 22:21:57 jsm Exp $ */ /* * Copyright (c) 1980, 1993 @@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\ #if 0 static char sccsid[] = "@(#)worms.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: worms.c,v 1.13 2004/01/27 20:30:31 jsm Exp $"); +__RCSID("$NetBSD: worms.c,v 1.14 2004/02/08 22:21:57 jsm Exp $"); #endif #endif /* not lint */ @@ -238,6 +238,7 @@ main(argc, argv) sizeof(struct worm))) || !(mp = malloc((size_t)1024))) nomem(); initscr(); + curs_set(0); CO = COLS; LI = LINES; last = CO - 1;