summaryrefslogtreecommitdiff
path: root/usr.bin/window/ttinit.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-04-15 05:22:15 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-04-15 05:22:15 +0000
commiteca4b7c7cae34bc02a5b3f67795bcffa97e9aae5 (patch)
treeb2055c4ec5659f7ed7dd6a01cfc9797bf10faa79 /usr.bin/window/ttinit.c
parenteebf512f9ccf68c32dd3357d8b220432728968c3 (diff)
Modify to build with ncurses, not ocurses. A proper port to terminfo
is probably not worth the effort.
Diffstat (limited to 'usr.bin/window/ttinit.c')
-rw-r--r--usr.bin/window/ttinit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/window/ttinit.c b/usr.bin/window/ttinit.c
index 360a9c4702f..8895c359ec7 100644
--- a/usr.bin/window/ttinit.c
+++ b/usr.bin/window/ttinit.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ttinit.c,v 1.6 2000/04/14 18:43:34 millert Exp $ */
+/* $OpenBSD: ttinit.c,v 1.7 2000/04/15 05:22:14 millert Exp $ */
/* $NetBSD: ttinit.c,v 1.3 1995/09/28 10:34:50 tls Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)ttinit.c 8.1 (Berkeley) 6/6/93";
#else
-static char rcsid[] = "$OpenBSD: ttinit.c,v 1.6 2000/04/14 18:43:34 millert Exp $";
+static char rcsid[] = "$OpenBSD: ttinit.c,v 1.7 2000/04/15 05:22:14 millert Exp $";
#endif
#endif /* not lint */
@@ -98,7 +98,7 @@ ttinit()
*/
#ifdef NCURSES_VERSION
wwterm = strdup(_nc_first_name(cur_term->type.term_names));
-#else
+#elif !defined(TERMINFO)
if ((p = strchr(wwtermcap, '|')) && p - wwtermcap == 2) {
/* Skip the two-character short name. */
for (p = wwtermcap; *p && *p != '|' && *p != ':'; p++)