Suit symbols work on all terminals now.
This commit is contained in:
		
							parent
							
								
									4c9336f944
								
							
						
					
					
						commit
						ee3daeb30a
					
				
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							@ -13,7 +13,7 @@ OBJECTS = ${LIB_DIR}/frame.o    \
 | 
			
		||||
          ${LIB_DIR}/keyboard.o \
 | 
			
		||||
          ${LIB_DIR}/display.o  \
 | 
			
		||||
          ${LIB_DIR}/game.o
 | 
			
		||||
LDFLAGS = -lncurses
 | 
			
		||||
LDFLAGS = -lncursesw
 | 
			
		||||
 | 
			
		||||
tty-solitaire: ${OBJECTS}
 | 
			
		||||
	${CC} ${CFLAGS} ${LDFLAGS} ${SRC} -o ${OUTPUT} ${OBJECTS}
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										14
									
								
								lib/util.c
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								lib/util.c
									
									
									
									
									
								
							@ -2,13 +2,13 @@
 | 
			
		||||
#include <locale.h>
 | 
			
		||||
 | 
			
		||||
void initialize_curses() {
 | 
			
		||||
  setlocale(LC_ALL, "");    /* supporting unicode characters          */
 | 
			
		||||
  initscr();                /* initialize the terminal in curses mode */
 | 
			
		||||
  raw();                    /* disable line buffers                   */
 | 
			
		||||
  noecho();                 /* character echo is unnecessary          */
 | 
			
		||||
  keypad(stdscr, TRUE);     /* enable F and arrow keys                */
 | 
			
		||||
  start_color();            /* I want colors                          */
 | 
			
		||||
  curs_set(FALSE);          /* invisible cursor                       */
 | 
			
		||||
  setlocale(LC_ALL, "en_US.utf-8");  /* supporting unicode characters          */
 | 
			
		||||
  initscr();                         /* initialize the terminal in curses mode */
 | 
			
		||||
  raw();                             /* disable line buffers                   */
 | 
			
		||||
  noecho();                          /* character echo is unnecessary          */
 | 
			
		||||
  keypad(stdscr, TRUE);              /* enable F and arrow keys                */
 | 
			
		||||
  start_color();                     /* I want colors                          */
 | 
			
		||||
  curs_set(FALSE);                   /* invisible cursor                       */
 | 
			
		||||
  assume_default_colors(COLOR_WHITE, COLOR_GREEN);
 | 
			
		||||
 | 
			
		||||
  init_pair(1, COLOR_BLACK, COLOR_WHITE);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user