Index

ncurses-minesweeper / 82ddf89

Terminal game of Minesweeper, implemented in C with ncurses.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
1812 Sep 2020 23:2382ddf89Colors; base game state and game renderingJosh Stockin1150G

Blob @ ncurses-minesweeper / src / colors.c

text/plain389 bytesdownload raw
1#include <ncurses.h>
2
3int init_colorpairs(void) {
4 start_color();
5 use_default_colors();
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