/* -*-C-*-
-$Id: tterm.c,v 1.6 1999/01/02 06:11:34 cph Exp $
+$Id: tterm.c,v 1.7 2001/02/28 14:41:46 cph Exp $
Copyright (c) 1990-1999 Massachusetts Institute of Technology
#include "prims.h"
#include "osterm.h"
+#ifdef HAVE_TERMCAP_H
+# include <termcap.h>
+#else
+ extern char * BC;
+ extern char * UP;
+ extern char PC;
+ extern short ospeed;
+#endif
+
extern int EXFUN (tgetent, (char *, char *));
extern int EXFUN (tgetnum, (char *));
extern int EXFUN (tgetflag, (char *));
extern char * EXFUN (tparam, (char *, char*, int, int, ...));
extern char * EXFUN (tgoto, (char *, int, int));
extern int EXFUN (tputs, (char *, int, void (*) (int)));
-extern char * BC;
-extern char * UP;
-extern char PC;
-extern short ospeed;
#ifndef TERMCAP_BUFFER_SIZE
#define TERMCAP_BUFFER_SIZE 2048
DEFUN (tputs_write_char, (c), int c)
{
(*tputs_output_scan++) = c;
- return;
}
\f
DEFINE_PRIMITIVE ("TERMCAP-INITIALIZE", Prim_termcap_initialize, 1, 1, 0)