34:c4d4b8a8f902 | 35:6c64b7a073af |
---|---|
28 */ | 28 */ |
29 | 29 |
30 #include "terminal-chess.h" | 30 #include "terminal-chess.h" |
31 #include "game.h" | 31 #include "game.h" |
32 #include "input.h" | 32 #include "input.h" |
33 #include "colors.h" | |
33 #include <string.h> | 34 #include <string.h> |
34 #include <time.h> | 35 #include <time.h> |
35 #include <getopt.h> | 36 #include <getopt.h> |
36 | 37 |
37 int get_settings(int argc, char **argv, Settings *settings) { | 38 int get_settings(int argc, char **argv, Settings *settings) { |
168 halfdelay(1); | 169 halfdelay(1); |
169 keypad(stdscr, TRUE); | 170 keypad(stdscr, TRUE); |
170 if (has_colors()) { | 171 if (has_colors()) { |
171 start_color(); | 172 start_color(); |
172 init_colorpairs(); | 173 init_colorpairs(); |
173 bkgd(COLOR_PAIR(COL_YB)); | 174 bkgd(COLOR_PAIR(COL_APP)); |
174 } else { | 175 } else { |
175 fprintf(stderr, "Non-colored terminals are not supported yet."); | 176 fprintf(stderr, "Non-colored terminals are not supported yet."); |
176 endwin(); | 177 endwin(); |
177 return EXIT_FAILURE; | 178 return EXIT_FAILURE; |
178 } | 179 } |