Green background and invisible cursor.
This commit is contained in:
		
							parent
							
								
									6e802c682f
								
							
						
					
					
						commit
						3100da49d6
					
				| @ -12,7 +12,8 @@ void init_curses() { | |||||||
|   raw();                    /* disable line buffers                   */ |   raw();                    /* disable line buffers                   */ | ||||||
|   noecho();                 /* character echo is unnecessary          */ |   noecho();                 /* character echo is unnecessary          */ | ||||||
|   keypad(stdscr, TRUE);     /* enable F and arrow keys                */ |   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(1, COLOR_BLACK, COLOR_WHITE); | ||||||
|   init_pair(2, COLOR_RED, COLOR_WHITE); |   init_pair(2, COLOR_RED, COLOR_WHITE); | ||||||
| @ -52,6 +53,9 @@ void draw_empty_stacks() { | |||||||
| void initialize_game() { | void initialize_game() { | ||||||
|   struct deck *deck = NULL; |   struct deck *deck = NULL; | ||||||
| 
 | 
 | ||||||
|  |   clear(); | ||||||
|  |   refresh(); | ||||||
|  |   assume_default_colors(COLOR_WHITE, COLOR_GREEN); | ||||||
|   draw_empty_stacks(); |   draw_empty_stacks(); | ||||||
|   allocate_deck(&deck); |   allocate_deck(&deck); | ||||||
|   initialize_deck(deck); |   initialize_deck(deck); | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user