]> git.cameronkatri.com Git - bsdgames-darwin.git/commitdiff
cgram: make the 'solved' stand out more
authorrillig <rillig@NetBSD.org>
Fri, 26 Feb 2021 14:55:37 +0000 (14:55 +0000)
committerCameron Katri <me@cameronkatri.com>
Tue, 13 Apr 2021 19:28:34 +0000 (15:28 -0400)
Suggested by Weitian LI via [1].

[1] https://github.com/NetBSD/src/commit/efec6410b2b5a736

cgram/cgram.c

index 04b58cbfb85042b7d41f306af51bb4ea92327ab2..47222384a0c59d877a094d81d985e2d03d8e89b6 100644 (file)
@@ -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);