Modified colors for compatibility with Tektronix 4107 terminal in ANSI mode.
[sgk-go] / interface / play_ascii.c
index fa2975f..57465f7 100644 (file)
@@ -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[47m"
-#define BACK2COLOR "\x1B[107m"
+#define BACK1COLOR "\x1B[43m"
+#define BACK2COLOR "\x1B[47m"
 
 /*
  * 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) {