src/main.c

changeset 206
f8b9cdf60cf4
parent 202
6960625e62e0
child 208
e9c3d3e89465
equal deleted inserted replaced
205:4d452a723d96 206:f8b9cdf60cf4
1271 if (has_colors()) { 1271 if (has_colors()) {
1272 start_color(); 1272 start_color();
1273 init_colorpairs(); 1273 init_colorpairs();
1274 bkgd(COLOR_PAIR(COL_APP)); 1274 bkgd(COLOR_PAIR(COL_APP));
1275 } else { 1275 } else {
1276 fprintf(stderr, "Non-colored terminals are not supported yet.");
1277 endwin(); 1276 endwin();
1277 fprintf(stderr, "Non-colored terminals are not supported yet.\n");
1278 return EXIT_FAILURE; 1278 return EXIT_FAILURE;
1279 } 1279 }
1280 atexit(cleanup); 1280 atexit(cleanup);
1281 1281
1282 GameState gamestate; 1282 GameState gamestate;

mercurial