From 3100da49d6945525b454189c078c5fffc2dd4fe2 Mon Sep 17 00:00:00 2001 From: Murilo Soares Pereira Date: Sun, 11 Apr 2010 18:08:11 -0300 Subject: [PATCH] Green background and invisible cursor. --- lib/display.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/display.c b/lib/display.c index e90ef31..c042eef 100644 --- a/lib/display.c +++ b/lib/display.c @@ -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);