Module Name: src
Committed By: roy
Date: Mon Oct 3 12:32:29 UTC 2011
Modified Files:
src/games/hack: hack.terminfo.c
src/games/larn: io.c
src/games/tetris: screen.c
Log Message:
Use tiparm instead of vtparm.
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/games/hack/hack.terminfo.c
cvs rdiff -u -r1.25 -r1.26 src/games/larn/io.c
cvs rdiff -u -r1.26 -r1.27 src/games/tetris/screen.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/games/hack/hack.terminfo.c
diff -u src/games/hack/hack.terminfo.c:1.1 src/games/hack/hack.terminfo.c:1.2
--- src/games/hack/hack.terminfo.c:1.1 Wed Feb 3 15:34:38 2010
+++ src/games/hack/hack.terminfo.c Mon Oct 3 12:32:28 2011
@@ -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 ... */
Index: src/games/larn/io.c
diff -u src/games/larn/io.c:1.25 src/games/larn/io.c:1.26
--- src/games/larn/io.c:1.25 Wed Feb 3 15:34:39 2010
+++ src/games/larn/io.c Mon Oct 3 12:32:28 2011
@@ -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);
Index: src/games/tetris/screen.c
diff -u src/games/tetris/screen.c:1.26 src/games/tetris/screen.c:1.27
--- src/games/tetris/screen.c:1.26 Wed Feb 3 15:34:39 2010
+++ src/games/tetris/screen.c Mon Oct 3 12:32:28 2011
@@ -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);
}