Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/games/cgram cgram: make the 'solved' stand out more
details: https://anonhg.NetBSD.org/src/rev/ea25ffd36c6d
branches: trunk
changeset: 953114:ea25ffd36c6d
user: rillig <rillig%NetBSD.org@localhost>
date: Fri Feb 26 14:55:37 2021 +0000
description:
cgram: make the 'solved' stand out more
Suggested by Weitian LI via [1].
[1] https://github.com/NetBSD/src/commit/efec6410b2b5a736
diffstat:
games/cgram/cgram.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diffs (33 lines):
diff -r 51bc67eb33f9 -r ea25ffd36c6d games/cgram/cgram.c
--- a/games/cgram/cgram.c Fri Feb 26 11:12:45 2021 +0000
+++ b/games/cgram/cgram.c Fri Feb 26 14:55:37 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cgram.c,v 1.14 2021/02/22 19:34:07 rillig Exp $ */
+/* $NetBSD: cgram.c,v 1.15 2021/02/26 14:55:37 rillig Exp $ */
/*-
* Copyright (c) 2013, 2021 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(lint)
-__RCSID("$NetBSD: cgram.c,v 1.14 2021/02/22 19:34:07 rillig Exp $");
+__RCSID("$NetBSD: cgram.c,v 1.15 2021/02/26 14:55:37 rillig Exp $");
#endif
#include <assert.h>
@@ -342,8 +342,12 @@
}
move(LINES - 1, 0);
- if (is_solved())
- addstr("*solved* ");
+ if (is_solved()) {
+ attron(A_BOLD | A_STANDOUT);
+ addstr("*solved*");
+ attroff(A_BOLD | A_STANDOUT);
+ addch(' ');
+ }
addstr("~ to quit, * to cheat, ^pnfb to move");
move(cursor_y - offset_y, cursor_x - offset_x);
Home |
Main Index |
Thread Index |
Old Index