summaryrefslogtreecommitdiff
path: root/lib/libterm
diff options
context:
space:
mode:
authormikel <mikel@NetBSD.org>1996-11-12 07:50:11 +0000
committermikel <mikel@NetBSD.org>1996-11-12 07:50:11 +0000
commita41241b92a4d644c29af89617dff6355358bf0cd (patch)
tree926d8fa83186b2dcbf1f79f310ab645043973e6f /lib/libterm
parent457c188626005e67233e065df8547498e24d17f2 (diff)
/etc/termcap -> /usr/share/misc/termcap. Fixes misc/1401.
Diffstat (limited to 'lib/libterm')
-rw-r--r--lib/libterm/termcap.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/lib/libterm/termcap.c b/lib/libterm/termcap.c
index 29e00007071..2138396fd5a 100644
--- a/lib/libterm/termcap.c
+++ b/lib/libterm/termcap.c
@@ -1,4 +1,4 @@
-/* $NetBSD: termcap.c,v 1.8 1996/03/22 23:25:30 jtc Exp $ */
+/* $NetBSD: termcap.c,v 1.9 1996/11/12 07:50:11 mikel Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)termcap.c 8.1 (Berkeley) 6/4/93";
#else
-static char rcsid[] = "$NetBSD: termcap.c,v 1.8 1996/03/22 23:25:30 jtc Exp $";
+static char rcsid[] = "$NetBSD: termcap.c,v 1.9 1996/11/12 07:50:11 mikel Exp $";
#endif
#endif /* not lint */
@@ -92,13 +92,15 @@ tgetent(bp, name)
cp = getenv("TERMCAP");
/*
* TERMCAP can have one of two things in it. It can be the
- * name of a file to use instead of /etc/termcap. In this
- * case it better start with a "/". Or it can be an entry to
- * use so we don't have to read the file. In this case it
- * has to already have the newlines crunched out. If TERMCAP
- * does not hold a file name then a path of names is searched
- * instead. The path is found in the TERMPATH variable, or
- * becomes "$HOME/.termcap /etc/termcap" if no TERMPATH exists.
+ * name of a file to use instead of
+ * /usr/share/misc/termcap. In this case it better start with
+ * a "/". Or it can be an entry to use so we don't have to
+ * read the file. In this case it has to already have the
+ * newlines crunched out. If TERMCAP does not hold a file
+ * name then a path of names is searched instead. The path is
+ * found in the TERMPATH variable, or becomes _PATH_DEF
+ * ("$HOME/.termcap /usr/share/misc/termcap") if no TERMPATH
+ * exists.
*/
if (!cp || *cp != '/') { /* no TERMCAP or it holds an entry */
if ((termpath = getenv("TERMPATH")) != NULL)