| 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; |