summaryrefslogtreecommitdiffstats
path: root/cgram
diff options
context:
space:
mode:
authorrillig <rillig@NetBSD.org>2021-02-26 14:55:37 +0000
committerCameron Katri <me@cameronkatri.com>2021-04-13 15:28:34 -0400
commita92dd07897672b9d6ecfb6ab8353cf224a94e1f6 (patch)
tree1a1d5091a2a41cdefb764522a97298b04ace9064 /cgram
parent7aac7a7e5d525d103439a884f659f2b5070ee394 (diff)
downloadbsdgames-darwin-a92dd07897672b9d6ecfb6ab8353cf224a94e1f6.tar.gz
bsdgames-darwin-a92dd07897672b9d6ecfb6ab8353cf224a94e1f6.tar.zst
bsdgames-darwin-a92dd07897672b9d6ecfb6ab8353cf224a94e1f6.zip
cgram: make the 'solved' stand out more
Suggested by Weitian LI via [1]. [1] https://github.com/NetBSD/src/commit/efec6410b2b5a736
Diffstat (limited to 'cgram')
-rw-r--r--cgram/cgram.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/cgram/cgram.c b/cgram/cgram.c
index 04b58cbf..47222384 100644
--- a/cgram/cgram.c
+++ b/cgram/cgram.c
@@ -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 @@ redraw(void)
}
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);