diff options
-rw-r--r-- | games/backgammon/backgammon/backgammon.6 | 11 | ||||
-rw-r--r-- | games/backgammon/common_source/fancy.c | 8 | ||||
-rw-r--r-- | games/backgammon/common_source/subs.c | 6 | ||||
-rw-r--r-- | games/boggle/README | 4 | ||||
-rw-r--r-- | games/rain/rain.6 | 10 | ||||
-rw-r--r-- | games/snake/move.c | 10 |
6 files changed, 22 insertions, 27 deletions
diff --git a/games/backgammon/backgammon/backgammon.6 b/games/backgammon/backgammon/backgammon.6 index 4bec2ef5e56..ba6313ef845 100644 --- a/games/backgammon/backgammon/backgammon.6 +++ b/games/backgammon/backgammon/backgammon.6 @@ -1,4 +1,4 @@ -.\" $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. @@ -87,8 +87,7 @@ print the board before white's turn 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 . @@ -102,7 +101,7 @@ gets a description of possible arguments. If .Ar term has capabilities for direct cursor movement (see -.Xr termcap 5 ) +.Xr terminfo 5 ) .Nm .Dq fixes the board after each move, @@ -115,7 +114,7 @@ option will be ignored. .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, @@ -179,8 +178,6 @@ Alan Char .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. diff --git a/games/backgammon/common_source/fancy.c b/games/backgammon/common_source/fancy.c index 34539f768f0..d1d5fe86447 100644 --- a/games/backgammon/common_source/fancy.c +++ b/games/backgammon/common_source/fancy.c @@ -1,4 +1,4 @@ -/* $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 @@ -37,7 +37,7 @@ #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 */ @@ -69,7 +69,7 @@ char **tstr[] = {&BC, &CD, &CE, &CL, &CM, &HO, &ND, &UP}; 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}; @@ -673,7 +673,7 @@ getcaps(s) 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) diff --git a/games/backgammon/common_source/subs.c b/games/backgammon/common_source/subs.c index 3ea1f40e25f..74492085889 100644 --- a/games/backgammon/common_source/subs.c +++ b/games/backgammon/common_source/subs.c @@ -1,4 +1,4 @@ -/* $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 @@ -37,7 +37,7 @@ #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 */ @@ -350,7 +350,7 @@ getarg(argc,argv) 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; diff --git a/games/boggle/README b/games/boggle/README index b67c66c702d..9d9d5aefaf5 100644 --- a/games/boggle/README +++ b/games/boggle/README @@ -1,4 +1,4 @@ -$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". @@ -7,7 +7,7 @@ It has been tested on the Sun 3 under SunOS 3.2 and on the Atari 1040ST (MWC). 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). diff --git a/games/rain/rain.6 b/games/rain/rain.6 index 54332a974a2..56919813643 100644 --- a/games/rain/rain.6 +++ b/games/rain/rain.6 @@ -1,4 +1,4 @@ -.\" $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. @@ -53,13 +53,11 @@ or the 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 diff --git a/games/snake/move.c b/games/snake/move.c index df8d50e1706..ecf8c55d833 100644 --- a/games/snake/move.c +++ b/games/snake/move.c @@ -1,4 +1,4 @@ -/* $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 $ */ /* @@ -38,7 +38,7 @@ #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 */ @@ -85,7 +85,7 @@ static char rcsid[] = "$OpenBSD: move.c,v 1.1 1999/03/13 02:08:09 pjanzen Exp $" * 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. @@ -279,7 +279,7 @@ right(sp) 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). */ @@ -594,7 +594,7 @@ getcap() 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); } |