summaryrefslogtreecommitdiffstats
path: root/tetris/screen.c
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>1997-10-14 01:14:20 +0000
committerlukem <lukem@NetBSD.org>1997-10-14 01:14:20 +0000
commit216b7a5ba4e82202a7c67e6a5d81982a7207ddd3 (patch)
tree6aeb633c9fe11f13e65bcec3c91f7602a24b0af6 /tetris/screen.c
parentbed741e4c8e900d3e63a5a4ba970352f316a4e93 (diff)
downloadbsdgames-darwin-216b7a5ba4e82202a7c67e6a5d81982a7207ddd3.tar.gz
bsdgames-darwin-216b7a5ba4e82202a7c67e6a5d81982a7207ddd3.tar.zst
bsdgames-darwin-216b7a5ba4e82202a7c67e6a5d81982a7207ddd3.zip
use <termcap.h>
Diffstat (limited to 'tetris/screen.c')
-rw-r--r--tetris/screen.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/tetris/screen.c b/tetris/screen.c
index 9598227d..6c83147d 100644
--- a/tetris/screen.c
+++ b/tetris/screen.c
@@ -1,4 +1,4 @@
-/* $NetBSD: screen.c,v 1.5 1997/10/12 02:03:45 lukem Exp $ */
+/* $NetBSD: screen.c,v 1.6 1997/10/14 01:14:28 lukem Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -49,6 +49,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <termcap.h>
#include <termios.h>
#include <unistd.h>
@@ -59,14 +60,6 @@
#include "screen.h"
#include "tetris.h"
-/*
- * XXX - need a <termcap.h>
- */
-int tgetent __P((char *, const char *));
-int tgetflag __P((const char *));
-int tgetnum __P((const char *));
-int tputs __P((const char *, int, int (*)(int)));
-
static cell curscreen[B_SIZE]; /* 1 => standout (or otherwise marked) */
static int curscore;
static int isset; /* true => terminal is in game mode */
@@ -75,8 +68,6 @@ static void (*tstp) __P((int));
static void scr_stop __P((int));
static void stopset __P((int));
-extern char *tgetstr __P((char *, char **));
-extern char *tgoto __P((char *, int, int));
/*
@@ -136,12 +127,12 @@ static char combuf[1024], tbuf[1024];
/*
* Routine used by tputs().
*/
-int
+void
put(c)
int c;
{
- return (putchar(c));
+ (void) putchar(c);
}
/*