/etc/termcap -> /usr/share/misc/termcap. Fixes misc/1401.

This commit is contained in:
mikel 1996-11-12 07:50:11 +00:00
parent 457c188626
commit a41241b92a
5 changed files with 24 additions and 21 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: backgammon.6,v 1.4 1995/03/21 15:04:55 cgd Exp $
.\" $NetBSD: backgammon.6,v 1.5 1996/11/12 08:06:56 mikel Exp $
.\"
.\" Copyright (c) 1980, 1993
.\" The Regents of the University of California. All rights reserved.
@ -85,7 +85,8 @@ print the board before both player's turn
.It Fl t Ar term
terminal is type
.Ar term ,
uses /etc/termcap
uses
.Pa /usr/share/misc/termcap
.It Fl s Ar file
recover previously saved game from
.Ar file .
@ -112,7 +113,7 @@ unless the screen suffers some horrendous malady.
Also, any `p' option will be ignored.
(The `t' option is not necessary unless the terminal type does not match
the entry in the
.Pa /etc/termcap
.Pa /usr/share/misc/termcap
data base.)
.Sh QUICK REFERENCE
When the program prompts by typing only your color,
@ -173,10 +174,10 @@ or 0 or 25 as appropriate.
.Sh AUTHOR
Alan Char
.Sh FILES
.Bl -tag -width /usr/games/teachgammon -compact
.Bl -tag -width /usr/share/misc/termcap -compact
.It Pa /usr/games/teachgammon
rules and tutorial
.It Pa /etc/termcap
.It Pa /usr/share/misc/termcap
terminal capabilities
.El
.Sh BUGS

View File

@ -1,4 +1,4 @@
.\" $Id: zmore.1,v 1.3 1993/10/15 23:06:03 jtc Exp $
.\" $Id: zmore.1,v 1.4 1996/11/12 08:11:06 mikel Exp $
.TH ZMORE 1
.SH NAME
zmore \- file perusal filter for crt viewing of compressed text
@ -28,7 +28,7 @@ another screenful is displayed. Other possibilities are enumerated later.
.PP
.I Zmore
looks in the file
.I /etc/termcap
.I /usr/share/misc/termcap
to determine terminal characteristics,
and to determine the default window size.
On a terminal capable of displaying 24 lines,
@ -141,6 +141,6 @@ acts just like
except that a header is printed before each file.
.SH FILES
.DT
/etc/termcap Terminal data base
/usr/share/misc/termcap Terminal data base
.SH "SEE ALSO"
more(1), gzip(1), zdiff(1), zgrep(1), znew(1), zforce(1), gzexe(1)

View File

@ -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)

View File

@ -1,4 +1,4 @@
.\" $NetBSD: environ.7,v 1.4 1995/07/03 19:45:07 jtc Exp $
.\" $NetBSD: environ.7,v 1.5 1996/11/12 08:14:17 mikel Exp $
.\"
.\" Copyright (c) 1983, 1990, 1993
.\" The Regents of the University of California. All rights reserved.
@ -117,7 +117,7 @@ no
is equivalent to a
.Ev TERMPATH
of
.Dq Pa $HOME/.termcap:/etc/termcap .
.Dq Pa $HOME/.termcap:/usr/share/misc/termcap .
.Ev TERMPATH
is ignored if
.Ev TERMCAP

View File

@ -1,4 +1,4 @@
.\" $NetBSD: ul.1,v 1.3 1994/12/07 00:28:23 jtc Exp $
.\" $NetBSD: ul.1,v 1.4 1996/11/12 08:00:07 mikel Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -52,7 +52,7 @@ which indicates underlining for the terminal in use, as specified
by the environment variable
.Ev TERM .
The file
.Pa /etc/termcap
.Pa /usr/share/misc/termcap
is read to determine the appropriate sequences for underlining.
If the terminal is incapable of underlining, but is capable of
a standout mode then that is used instead.