From 12922b63e69c7cbfaeb2243d3b8b094701a92a2d Mon Sep 17 00:00:00 2001 From: girst Date: Mon, 26 Nov 2018 18:13:43 +0100 Subject: [PATCH] make movable cards bold (useful in spider) this breaks 'non-bright white' color of the black cards, they now appear white. :/ using 'bright black' is a bit too dark for my liking. --- sol.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sol.c b/sol.c index 8264864..8495372 100644 --- a/sol.c +++ b/sol.c @@ -512,11 +512,14 @@ void print_table(int highlight) { //{{{ for (int pile = 0; pile < NUM_PILES; pile++) { card_t card = f.t[pile][row[pile]]; card_t next = f.t[pile][row[pile]+1]; + int movable = is_movable(f.t[pile], row[pile]); - print_hi (highlight == pile && is_movable(f.t[pile],row[pile]), ( + if (movable) printf ("\033[1m"); /* bold */ //TODO: interferes with grey color! + print_hi (highlight == pile && movable, ( (card<0)?op.s->facedown :op.s->card[card] )[line[pile]]); + printf ("\033[22m"); /* normal intensity (no bold) */ if (++line[pile] >= (next?op.s->overlap:op.s->height) //normal overlap #if 0 //XXX -- 2.39.3