Hide the cursor if possible. From OpenBSD.
This commit is contained in:
parent
34fb5c1494
commit
a12bf9a7e0
@ -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
|
* Copyright (c) 1980, 1993
|
||||||
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)rain.c 8.1 (Berkeley) 5/31/93";
|
static char sccsid[] = "@(#)rain.c 8.1 (Berkeley) 5/31/93";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -98,6 +98,7 @@ main(argc, argv)
|
|||||||
(void)signal(SIGTSTP, onsig);
|
(void)signal(SIGTSTP, onsig);
|
||||||
(void)signal(SIGTERM, onsig);
|
(void)signal(SIGTERM, onsig);
|
||||||
|
|
||||||
|
curs_set(0);
|
||||||
for (j = 4; j >= 0; --j) {
|
for (j = 4; j >= 0; --j) {
|
||||||
xpos[j] = random() % cols + 2;
|
xpos[j] = random() % cols + 2;
|
||||||
ypos[j] = random() % lines + 2;
|
ypos[j] = random() % lines + 2;
|
||||||
|
@ -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
|
* Copyright (c) 1980, 1993
|
||||||
@ -39,7 +39,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)worms.c 8.1 (Berkeley) 5/31/93";
|
static char sccsid[] = "@(#)worms.c 8.1 (Berkeley) 5/31/93";
|
||||||
#else
|
#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
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -238,6 +238,7 @@ main(argc, argv)
|
|||||||
sizeof(struct worm))) || !(mp = malloc((size_t)1024)))
|
sizeof(struct worm))) || !(mp = malloc((size_t)1024)))
|
||||||
nomem();
|
nomem();
|
||||||
initscr();
|
initscr();
|
||||||
|
curs_set(0);
|
||||||
CO = COLS;
|
CO = COLS;
|
||||||
LI = LINES;
|
LI = LINES;
|
||||||
last = CO - 1;
|
last = CO - 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user