summaryrefslogtreecommitdiffstats
path: root/tetris/scores.c
diff options
context:
space:
mode:
authorroy <roy@NetBSD.org>2010-02-03 15:34:37 +0000
committerroy <roy@NetBSD.org>2010-02-03 15:34:37 +0000
commit164f814056645ef1910d5bf4c9147929e07c3a7c (patch)
tree69388c3d125835723e2b47ab72df148e22abe10b /tetris/scores.c
parentbd6c81dd776fddd0e7853f2cfb907dc91723f8c3 (diff)
downloadbsdgames-darwin-164f814056645ef1910d5bf4c9147929e07c3a7c.tar.gz
bsdgames-darwin-164f814056645ef1910d5bf4c9147929e07c3a7c.zip
Userland now builds and uses terminfo instead of termcap.
OK: core@, jdc@
Diffstat (limited to 'tetris/scores.c')
-rw-r--r--tetris/scores.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tetris/scores.c b/tetris/scores.c
index eaf2618c..42c427e0 100644
--- a/tetris/scores.c
+++ b/tetris/scores.c
@@ -1,4 +1,4 @@
-/* $NetBSD: scores.c,v 1.18 2009/09/08 13:38:01 dholland Exp $ */
+/* $NetBSD: scores.c,v 1.19 2010/02/03 15:34:39 roy Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -50,7 +50,7 @@
#include <string.h>
#include <sys/stat.h>
#include <time.h>
-#include <termcap.h>
+#include <term.h>
#include <unistd.h>
#include "pathnames.h"
@@ -861,7 +861,7 @@ showscores(int level)
* the high scores; we do not need to check for printing in highlight
* mode. If SOstr is null, we can't do highlighting anyway.
*/
- me = level && SOstr ? thisuser() : NULL;
+ me = level && enter_standout_mode ? thisuser() : NULL;
/*
* Set times to 0 except for high score on each level.
@@ -939,12 +939,12 @@ printem(int level, int offset, struct highscore *hs, int n, const char *me)
sp->hs_level == level &&
sp->hs_score == score &&
strcmp(sp->hs_name, me) == 0) {
- putpad(SOstr);
+ putpad(enter_standout_mode);
highlight = 1;
}
(void)printf("%s", buf);
if (highlight) {
- putpad(SEstr);
+ putpad(exit_standout_mode);
highlight = 0;
}