#include "cm.h"
#include "termhooks.h"
+#ifdef HAVE_TERMCAP_H
+#include <termcap.h>
+#else
+extern void tputs P_ ((const char *, int, int (*)(int)));
+extern char *tgoto P_ ((const char *, int, int));
+#endif
+
#define BIG 9999 /* 9999 good on VAXen. For 16 bit machines
use about 2000.... */
-char *tgoto ();
-
extern char *BC, *UP;
int cost; /* sums up costs */