From f997542cfeff645743a9f2392adbb27249844a2e Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sat, 23 Dec 2023 20:59:13 +0100 Subject: Reformatted style4() --- FICS/board.c | 46 +++++++++++++++++++++++++++++++++------------- 1 file changed, 33 insertions(+), 13 deletions(-) (limited to 'FICS') diff --git a/FICS/board.c b/FICS/board.c index 6db8fc4..583fcfd 100644 --- a/FICS/board.c +++ b/FICS/board.c @@ -399,21 +399,41 @@ PUBLIC int style3(game_state_t *b, move_t *ml) return genstyle(b, ml, wp, bp, wsqr, bsqr, top, mid, start, end, label, blabel); } -/* Experimental vt-100 ANSI board for light backgrounds */ -PUBLIC int style4(game_state_t *b, move_t *ml) +/* + * Experimental vt-100 ANSI board for light backgrounds + */ +PUBLIC int +style4(game_state_t *b, move_t *ml) { - static char *wp[] = {" ", " P ", " N ", " B ", " R ", " Q ", " K "}; - static char *bp[] = {" ", " *P", " *N", " *B", " *R", " *Q", " *K"}; - static char *wsqr = "\033[7m"; - static char *bsqr = "\033[0m"; - static char *top = "\t+------------------------+\n"; - static char *mid = ""; - static char *start = "|"; - static char *end = "\033[0m|"; - static char *label = "\t a b c d e f g h\n"; - static char *blabel = "\t h g f e d c b a\n"; + static char *wp[] = { + " ", + " P ", + " N ", + " B ", + " R ", + " Q ", + " K " + }; + static char *bp[] = { + " ", + " *P", + " *N", + " *B", + " *R", + " *Q", + " *K" + }; + static char *wsqr = "\033[7m"; + static char *bsqr = "\033[0m"; + static char *top = "\t+------------------------+\n"; + static char *mid = ""; + static char *start = "|"; + static char *end = "\033[0m|"; + static char *label = "\t a b c d e f g h\n"; + static char *blabel = "\t h g f e d c b a\n"; - return genstyle(b, ml, wp, bp, wsqr, bsqr, top, mid, start, end, label, blabel); + return genstyle(b, ml, wp, bp, wsqr, bsqr, top, mid, start, end, label, + blabel); } /* -- cgit v1.2.3