fen_to_tty: make showcoords = 0 work properly - chess-puzzles - chess puzzle book generator
HTML git clone git://git.codemadness.org/chess-puzzles
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit b8fe22e0b3297f81eca81b3c5ad8f2fd7e918c38
DIR parent 26d727fe71a7e77b2eb1f733e2ad738b52089c54
HTML Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 18 Dec 2023 15:55:04 +0100
fen_to_tty: make showcoords = 0 work properly
Diffstat:
M fen_to_tty.c | 4 ++++
1 file changed, 4 insertions(+), 0 deletions(-)
---
DIR diff --git a/fen_to_tty.c b/fen_to_tty.c
@@ -190,6 +190,8 @@ showboard(void)
putchar(' ');
putchar('8' - y);
putchar(' ');
+ } else {
+ fputs(" ", stdout);
}
printf("\x1b[0m"); /* reset */
@@ -201,6 +203,8 @@ showboard(void)
SETFGCOLOR(0xff, 0xff, 0xff);
if (showcoords)
fputs(" a b c d e f g h ", stdout);
+ else
+ fputs(" ", stdout);
printf("\x1b[0m"); /* reset */
printf("\n");
printf("\x1b[0m"); /* reset */