Index

ncurses-minesweeper / 14fa750

Terminal game of Minesweeper, implemented in C with ncurses.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
1913 Sep 2020 14:2371d76abAdd majority of game logic, renderingJosh Stockin111G

Blob @ ncurses-minesweeper / src / colors.c

text/plain389 bytesdownload raw
1#include <ncurses.h>
2
3int init_colorpairs(void) {
4 use_default_colors();
5 start_color();
6 init_pair(1, COLOR_BLUE, -1);
7 init_pair(2, COLOR_GREEN, -1);
8 init_pair(3, COLOR_RED, -1);
9 init_pair(4, COLOR_MAGENTA, -1);
10 init_pair(5, COLOR_RED, -1);
11 init_pair(6, COLOR_CYAN, -1);
12 init_pair(7, COLOR_BLACK, -1);
13 init_pair(8, COLOR_MAGENTA, -1);
14 return 0;
15}
16