1 | /* ncurses-minesweeper Copyright (c) 2020 Joshua 'joshuas3' Stockin |
2 | * <https://joshstock.in> |
3 | * <https://github.com/JoshuaS3/ncurses-minesweeper> |
4 | * |
5 | * This software is licensed and distributed under the terms of the MIT License. |
6 | * See the MIT License in the LICENSE file of this project's root folder. |
7 | * |
8 | * This comment block and its contents, including this disclaimer, MUST be |
9 | * preserved in all copies or distributions of this software's source. |
10 | */ |
11 |
|
12 | #include <ncurses.h> |
13 |
|
14 | int init_colorpairs(void) { |
15 | use_default_colors(); |
16 | start_color(); |
17 | init_pair(1, COLOR_BLUE, -1); |
18 | init_pair(2, COLOR_GREEN, -1); |
19 | init_pair(3, COLOR_RED, -1); |
20 | init_pair(4, COLOR_MAGENTA, -1); |
21 | init_pair(5, COLOR_RED, -1); |
22 | init_pair(6, COLOR_CYAN, -1); |
23 | init_pair(7, COLOR_WHITE, -1); |
24 | init_pair(8, COLOR_MAGENTA, -1); |
25 | return 0; |
26 | } |
27 |
|