projects
/
sgk-go
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modified colors for compatibility with Tektronix 4107 terminal in ANSI mode.
[sgk-go]
/
interface
/
play_ascii.c
diff --git
a/interface/play_ascii.c
b/interface/play_ascii.c
index
fa2975f
..
57465f7
100644
(file)
--- a/
interface/play_ascii.c
+++ b/
interface/play_ascii.c
@@
-188,8
+188,8
@@
set_handicap_spots(int boardsize)
#define BLACKCOLOR "\x1B[44m"
#define RESETCOLOR "\x1B[0m"
#define BLACKCOLOR "\x1B[44m"
#define RESETCOLOR "\x1B[0m"
-#define BACK1COLOR "\x1B[4
7
m"
-#define BACK2COLOR "\x1B[
10
7m"
+#define BACK1COLOR "\x1B[4
3
m"
+#define BACK2COLOR "\x1B[
4
7m"
/*
* Display the board position when playing in ASCII.
/*
* Display the board position when playing in ASCII.
@@
-273,11
+273,11
@@
ascii_showboard(void)
break;
case BLACK+128:
printf(BLACKCOLOR "()" RESETCOLOR);
break;
case BLACK+128:
printf(BLACKCOLOR "()" RESETCOLOR);
- last_pos_was_move =
256
;
+ last_pos_was_move =
0
;
break;
case WHITE+128:
printf(WHITECOLOR "()" RESETCOLOR);
break;
case WHITE+128:
printf(WHITECOLOR "()" RESETCOLOR);
- last_pos_was_move =
256
;
+ last_pos_was_move =
0
;
break;
case EMPTY+256:
if (i % 2 == 0) {
break;
case EMPTY+256:
if (i % 2 == 0) {