summaryrefslogtreecommitdiff
path: root/usr.bin/vi/cl/cl_term.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-09-23 07:12:47 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-09-23 07:12:47 +0000
commit105a204fd2ed1b7514e2bf44df67cdd55e998b30 (patch)
treeda85a758856c4b928172f618d562e4bf57b88f7d /usr.bin/vi/cl/cl_term.c
parentec4ea0144d35ecdd92b9eec095340b0023f8c401 (diff)
Make building with ocurses/termcap and curses/termlib conditional on
USE_OCURSES being defined, and define it for now. This switches nvi back to use BSD curses.
Diffstat (limited to 'usr.bin/vi/cl/cl_term.c')
-rw-r--r--usr.bin/vi/cl/cl_term.c21
1 files changed, 20 insertions, 1 deletions
diff --git a/usr.bin/vi/cl/cl_term.c b/usr.bin/vi/cl/cl_term.c
index e4007403870..6edaffb0bf4 100644
--- a/usr.bin/vi/cl/cl_term.c
+++ b/usr.bin/vi/cl/cl_term.c
@@ -19,9 +19,13 @@ static const char sccsid[] = "@(#)cl_term.c 10.22 (Berkeley) 9/15/96";
#include <sys/stat.h>
#include <bitstring.h>
-#include <curses.h>
#include <errno.h>
#include <limits.h>
+#ifdef USE_OCURSES
+#include <ocurses.h>
+#else
+#include <curses.h>
+#endif
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
@@ -445,6 +449,20 @@ noterm: if (row == 0)
return (0);
}
+#ifdef USE_OCURSES
+/*
+ * cl_putchar --
+ * Function version of putchar, for tputs.
+ *
+ * PUBLIC: int cl_putchar __P((int));
+ */
+void
+cl_putchar(ch)
+ int ch;
+{
+ (void)putchar(ch);
+}
+#else
/*
* cl_putchar --
* Function version of putchar, for tputs.
@@ -457,3 +475,4 @@ cl_putchar(ch)
{
return (putchar(ch));
}
+#endif