-.\" $OpenBSD: backgammon.6,v 1.5 1999/07/09 13:35:54 aaron Exp $
+.\" $OpenBSD: backgammon.6,v 1.6 2000/04/21 03:10:24 pjanzen Exp $
.\"
.\" Copyright (c) 1980, 1993
.\" The Regents of the University of California. All rights reserved.
print the board before any turn
.It Fl t Ar term
terminal is type
-.Ar term ,
-using /etc/termcap
+.Ar term
.It Fl s Ar file
recover previously saved game from
.Ar file .
If
.Ar term
has capabilities for direct cursor movement (see
-.Xr termcap 5 )
+.Xr terminfo 5 )
.Nm
.Dq fixes
the board after each move,
.Fl t
option is not necessary unless the terminal type does not match
the entry in the
-.Pa /etc/termcap
+.Xr terminfo 5
data base.)
.Sh QUICK REFERENCE
When the program prompts by typing only your color,
.Bl -tag -width /usr/games/teachgammon -compact
.It Pa /usr/games/teachgammon
rules and tutorial
-.It Pa /etc/termcap
-terminal capabilities
.El
.Sh BUGS
The program's strategy needs much work.
-/* $OpenBSD: fancy.c,v 1.7 1999/07/31 21:57:40 pjanzen Exp $ */
+/* $OpenBSD: fancy.c,v 1.8 2000/04/21 03:10:30 pjanzen Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)fancy.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: fancy.c,v 1.7 1999/07/31 21:57:40 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: fancy.c,v 1.8 2000/04/21 03:10:30 pjanzen Exp $";
#endif
#endif /* not lint */
int buffnum; /* pointer to output buffer */
-char tbuf[1024]; /* buffer for decoded termcap entries */
+char tbuf[1024]; /* buffer for decoded terminfo entries */
int oldb[] = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
char *bufp; /* pointer to cap buffer */
char tentry[1024]; /* temporary uncoded caps buffer */
- tgetent(tentry, s); /* get uncoded termcap entry */
+ tgetent(tentry, s); /* get uncoded terminfo entry */
LI = tgetnum("li"); /* get number of lines */
if (LI == -1)
-/* $OpenBSD: subs.c,v 1.8 1999/07/31 21:57:41 pjanzen Exp $ */
+/* $OpenBSD: subs.c,v 1.9 2000/04/21 03:10:30 pjanzen Exp $ */
/*
* Copyright (c) 1980, 1993
#if 0
static char sccsid[] = "@(#)subs.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$OpenBSD: subs.c,v 1.8 1999/07/31 21:57:41 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: subs.c,v 1.9 2000/04/21 03:10:30 pjanzen Exp $";
#endif
#endif /* not lint */
args[acnt++] = 'w';
break;
- case 't': /* use spec'd term from /etc/termcap */
+ case 't': /* use spec'd term from terminfo database */
tflag = getcaps(optarg);
break;
-$OpenBSD: README,v 1.3 1998/09/24 06:45:05 pjanzen Exp $
+$OpenBSD: README,v 1.4 2000/04/21 03:10:30 pjanzen Exp $
Bog is a fairly portable simulation of Parker Brother's game of Boggle and
is similar to the 4.[23] BSD "boggle" and Sun's "boggletool".
What You Need
-You will need curses/termcap and a large word list.
+You will need curses and a large word list.
The minix word list or /usr/dict/words will do nicely.
The word list must already be sorted (you can use "sort -c" to check).
-.\" $OpenBSD: rain.6,v 1.9 1999/07/09 13:35:57 aaron Exp $
+.\" $OpenBSD: rain.6,v 1.10 2000/04/21 03:10:30 pjanzen Exp $
.\"
.\" Copyright (c) 1989, 1993
.\" The Regents of the University of California. All rights reserved.
option must be used to specify a delay, in milliseconds, between each update. A
reasonable delay is 120; the default is 0.
.Pp
-As with all programs that use
-.Tn termcap ,
-the
+As with any
+.Xr curses 3
+program, the
.Ev TERM
environment variable must be set (and exported) to the type of the
terminal being used.
-.Sh FILES
-.Pa /usr/share/misc/termcap
.Sh AUTHOR
Eric P. Scott
-/* $OpenBSD: move.c,v 1.1 1999/03/13 02:08:09 pjanzen Exp $ */
+/* $OpenBSD: move.c,v 1.2 2000/04/21 03:10:31 pjanzen Exp $ */
/* $NetBSD: move.c,v 1.12 1996/05/19 20:22:09 pk Exp $ */
/*
#if 0
static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 7/19/93";
#else
-static char rcsid[] = "$OpenBSD: move.c,v 1.1 1999/03/13 02:08:09 pjanzen Exp $";
+static char rcsid[] = "$OpenBSD: move.c,v 1.2 2000/04/21 03:10:31 pjanzen Exp $";
#endif
#endif /* not lint */
* otherwise, dumps it.(no wrap-around).
*
* getcap() initializes strings for later calls.
- * cap(string) outputs the string designated in the termcap
+ * cap(string) outputs the string designated in the terminfo
* data base. (Should not move the cursor.)
*
* cook() returns the terminal to initial state.
field = cursor.col >> 3;
/*
* This code is useful for a terminal which wraps around on backspaces.
- * (Mine does.) Unfortunately, this is not specified in termcap, and
+ * (Mine does.) Unfortunately, this is not specified in terminfo, and
* most terminals don't work that way. (Of course, most terminals
* have addressible cursors, too).
*/
errx(1, "No TERM in environment");
switch (tgetent(tbuf, term)) {
case -1:
- errx(2, "Cannot open termcap file");
+ errx(2, "Cannot open terminfo file");
case 0:
errx(3, "unknown terminal `%s'", term);
}