aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/board.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-23 21:03:05 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-23 21:03:05 +0100
commit3b8bbff786d96b58e3810f33869b9510b166c00e (patch)
treee5241acd2fb2d65baf16665cdd528fcbfac14dcc /FICS/board.c
parentf997542cfeff645743a9f2392adbb27249844a2e (diff)
Reformatted style3()
Diffstat (limited to 'FICS/board.c')
-rw-r--r--FICS/board.c46
1 files changed, 33 insertions, 13 deletions
diff --git a/FICS/board.c b/FICS/board.c
index 583fcfd..d72c959 100644
--- a/FICS/board.c
+++ b/FICS/board.c
@@ -382,21 +382,41 @@ PUBLIC int style2(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 dark backgrounds */
-PUBLIC int style3(game_state_t *b, move_t *ml)
+/*
+ * Experimental vt-100 ANSI board for dark backgrounds
+ */
+PUBLIC int
+style3(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[0m";
- static char *bsqr = "\033[7m";
- 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[0m";
+ static char *bsqr = "\033[7m";
+ 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);
}
/*