Suit symbols work on all terminals now.

This commit is contained in:
Murilo Soares Pereira
2010-04-20 02:10:03 -03:00
parent 4c9336f944
commit ee3daeb30a
2 changed files with 8 additions and 8 deletions

View File

@@ -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);