use <termcap.h>
This commit is contained in:
parent
0dc4ed53f0
commit
2ce4ef15e6
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: scores.c,v 1.3 1997/01/13 06:51:57 tls Exp $ */
|
||||
/* $NetBSD: scores.c,v 1.4 1997/10/14 01:14:20 lukem Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -52,13 +52,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
#include <termcap.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/*
|
||||
* XXX - need a <termcap.h>
|
||||
*/
|
||||
int tputs __P((const char *, int, int (*)(int)));
|
||||
|
||||
#include "pathnames.h"
|
||||
#include "screen.h"
|
||||
#include "scores.h"
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: screen.h,v 1.2 1995/04/22 07:42:42 cgd Exp $ */
|
||||
/* $NetBSD: screen.h,v 1.3 1997/10/14 01:14:34 lukem Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -49,7 +49,7 @@ char *SOstr; /* begin standout mode */
|
||||
*/
|
||||
#define putpad(s) tputs(s, 1, put)
|
||||
|
||||
int put __P((int)); /* just calls putchar; for tputs */
|
||||
void put __P((int)); /* just calls putchar; for tputs */
|
||||
void scr_clear __P((void));
|
||||
void scr_end __P((void));
|
||||
void scr_init __P((void));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: telnetd.c,v 1.9 1997/10/08 08:45:13 mrg Exp $ */
|
||||
/* $NetBSD: telnetd.c,v 1.10 1997/10/14 01:16:43 lukem Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1993
|
||||
@ -40,7 +40,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)telnetd.c 8.4 (Berkeley) 5/30/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: telnetd.c,v 1.9 1997/10/08 08:45:13 mrg Exp $");
|
||||
__RCSID("$NetBSD: telnetd.c,v 1.10 1997/10/14 01:16:43 lukem Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@ -49,7 +49,7 @@ __RCSID("$NetBSD: telnetd.c,v 1.9 1997/10/08 08:45:13 mrg Exp $");
|
||||
|
||||
#include <arpa/inet.h>
|
||||
|
||||
int tgetent __P((char *, char *)); /* XXX from <curses.h> */
|
||||
#include <termcap.h>
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#define P __P
|
||||
|
Loading…
Reference in New Issue
Block a user