Green background and invisible cursor.

This commit is contained in:
Murilo Soares Pereira 2010-04-11 18:08:11 -03:00
parent 6e802c682f
commit 3100da49d6

View File

@ -12,7 +12,8 @@ void init_curses() {
raw(); /* disable line buffers */
noecho(); /* character echo is unnecessary */
keypad(stdscr, TRUE); /* enable F and arrow keys */
start_color();
start_color(); /* I want colors */
curs_set(0); /* invisible cursor */
init_pair(1, COLOR_BLACK, COLOR_WHITE);
init_pair(2, COLOR_RED, COLOR_WHITE);
@ -52,6 +53,9 @@ void draw_empty_stacks() {
void initialize_game() {
struct deck *deck = NULL;
clear();
refresh();
assume_default_colors(COLOR_WHITE, COLOR_GREEN);
draw_empty_stacks();
allocate_deck(&deck);
initialize_deck(deck);