summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorroy <roy@NetBSD.org>2011-10-03 12:32:15 +0000
committerroy <roy@NetBSD.org>2011-10-03 12:32:15 +0000
commit7eb5acdc8eb7f5fcf16878714eb6449a60f43040 (patch)
tree588fcbdbd846ffa15af2f6691c7aceb7236a4a2e
parent05e32d2c4644c0f6f1cef31873e8d2d0642efa1c (diff)
downloadbsdgames-darwin-7eb5acdc8eb7f5fcf16878714eb6449a60f43040.tar.gz
bsdgames-darwin-7eb5acdc8eb7f5fcf16878714eb6449a60f43040.tar.zst
bsdgames-darwin-7eb5acdc8eb7f5fcf16878714eb6449a60f43040.zip
Use tiparm instead of vtparm.
-rw-r--r--hack/hack.terminfo.c8
-rw-r--r--larn/io.c14
-rw-r--r--tetris/screen.c4
3 files changed, 13 insertions, 13 deletions
diff --git a/hack/hack.terminfo.c b/hack/hack.terminfo.c
index 8ded6387..a7ea30b9 100644
--- a/hack/hack.terminfo.c
+++ b/hack/hack.terminfo.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.terminfo.c,v 1.1 2010/02/03 15:34:38 roy Exp $ */
+/* $NetBSD: hack.terminfo.c,v 1.2 2011/10/03 12:32:28 roy Exp $ */
/*
* Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica,
@@ -63,7 +63,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.terminfo.c,v 1.1 2010/02/03 15:34:38 roy Exp $");
+__RCSID("$NetBSD: hack.terminfo.c,v 1.2 2011/10/03 12:32:28 roy Exp $");
#endif /* not lint */
#include <string.h>
@@ -126,7 +126,7 @@ cmov(int x, int y)
{
char *p;
- p = vtparm(cursor_address, y - 1, x - 1);
+ p = tiparm(cursor_address, y - 1, x - 1);
if (p) {
xputs(p);
cury = y;
@@ -246,7 +246,7 @@ home(void)
if (cursor_home)
xputs(cursor_home);
- else if ((cursor_address) && (out = vtparm(cursor_address, 0, 0)))
+ else if ((cursor_address) && (out = tiparm(cursor_address, 0, 0)))
xputs(out);
else
curs(1, 1); /* using UP ... */
diff --git a/larn/io.c b/larn/io.c
index 56027858..b2a9fb89 100644
--- a/larn/io.c
+++ b/larn/io.c
@@ -1,4 +1,4 @@
-/* $NetBSD: io.c,v 1.25 2010/02/03 15:34:39 roy Exp $ */
+/* $NetBSD: io.c,v 1.26 2011/10/03 12:32:28 roy Exp $ */
/*
* io.c Larn is copyrighted 1986 by Noah Morgan.
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: io.c,v 1.25 2010/02/03 15:34:39 roy Exp $");
+__RCSID("$NetBSD: io.c,v 1.26 2011/10/03 12:32:28 roy Exp $");
#endif /* not lint */
#include "header.h"
@@ -831,7 +831,7 @@ lflush()
case CURSOR:
curx = *++str - 1;
cury = *++str - 1;
- tputs(vtparm(cursor_address,
+ tputs(tiparm(cursor_address,
cury, curx), 0, ttputch);
break;
@@ -845,7 +845,7 @@ lflush()
if (++scrline > 23)
scrline = 19;
- tputs(vtparm(
+ tputs(tiparm(
cursor_address,
scrline, 0),
0, ttputch);
@@ -854,20 +854,20 @@ lflush()
if (--scrline < 19)
scrline = 23;
- tputs(vtparm(
+ tputs(tiparm(
cursor_address,
scrline, 0),
0, ttputch);
tputs(clr_eol, 0,
ttputch);
} else {
- tputs(vtparm(
+ tputs(tiparm(
cursor_address,
19, 0),
0, ttputch);
tputs(delete_line, 0,
ttputch);
- tputs(vtparm(
+ tputs(tiparm(
cursor_address,
23, 0),
0, ttputch);
diff --git a/tetris/screen.c b/tetris/screen.c
index ed9e849b..2d58303b 100644
--- a/tetris/screen.c
+++ b/tetris/screen.c
@@ -1,4 +1,4 @@
-/* $NetBSD: screen.c,v 1.26 2010/02/03 15:34:39 roy Exp $ */
+/* $NetBSD: screen.c,v 1.27 2011/10/03 12:32:28 roy Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -89,7 +89,7 @@ moveto(int r, int c)
{
char *buf;
- buf = vtparm(cursor_address, r, c);
+ buf = tiparm(cursor_address, r, c);
if (buf != NULL)
putpad(buf);
}