improve tty board border size a bit - chess-puzzles - chess puzzle book generator
 (HTM) git clone git://git.codemadness.org/chess-puzzles
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 0d2f03825dce77e698f85d349ff7d35e72031f6d
 (DIR) parent d3c8592f3761018e4fac3ba37503f432cb1dda1f
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Thu, 21 Dec 2023 00:32:41 +0100
       
       improve tty board border size a bit
       
       Diffstat:
         M fen.c                               |      11 +++++------
       
       1 file changed, 5 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/fen.c b/fen.c
       @@ -298,7 +298,7 @@ showboard_tty(void)
                color = border;
                SETBGCOLOR(color[0], color[1], color[2]);
                SETFGCOLOR(0xff, 0xff, 0xff);
       -        fputs("                             ", stdout);
       +        fputs("                            ", stdout);
                printf("\x1b[0m"); /* reset */
                SETFGCOLOR(0x00, 0x00, 0x00);
                putchar('\n');
       @@ -348,11 +348,10 @@ showboard_tty(void)
                        SETBGCOLOR(color[0], color[1], color[2]);
                        SETFGCOLOR(0xff, 0xff, 0xff);
                        if (showcoords) {
       -                        putchar(' ');
                                putchar('8' - y);
                                putchar(' ');
                        } else {
       -                        fputs("   ", stdout);
       +                        fputs("  ", stdout);
                        }
        
                        printf("\x1b[0m"); /* reset */
       @@ -364,11 +363,11 @@ showboard_tty(void)
                SETFGCOLOR(0xff, 0xff, 0xff);
                if (showcoords) {
                        if (flipboard)
       -                        fputs("   h  g  f  e  d  c  b  a    ", stdout);
       +                        fputs("   h  g  f  e  d  c  b  a   ", stdout);
                        else
       -                        fputs("   a  b  c  d  e  f  g  h    ", stdout);
       +                        fputs("   a  b  c  d  e  f  g  h   ", stdout);
                } else {
       -                fputs("                             ", stdout);
       +                fputs("                            ", stdout);
                }
                printf("\x1b[0m"); /* reset */
                printf("\n");