X-Git-Url: http://git.shiar.net/netris.git/blobdiff_plain/b5a9cdfd671a10cd5b5e9f1f53105e9993414247..5902d7f327fcf57d2b1a47f1b4a3aa98f4ab08a8:/curses.c diff --git a/curses.c b/curses.c index aab808d..e7f18c4 100644 --- a/curses.c +++ b/curses.c @@ -86,14 +86,14 @@ void InitScreens(void) char type; short color; } myColorTable[] = { - { BT_white, COLOR_WHITE }, - { BT_blue, COLOR_BLUE }, - { BT_magenta, COLOR_MAGENTA }, - { BT_cyan, COLOR_CYAN }, - { BT_yellow, COLOR_YELLOW }, - { BT_green, COLOR_GREEN }, - { BT_red, COLOR_RED }, - { BT_none, 0 } + { BT_white, COLOR_WHITE }, + { BT_blue, COLOR_BLUE }, + { BT_magenta, COLOR_MAGENTA }, + { BT_cyan, COLOR_CYAN }, + { BT_yellow, COLOR_YELLOW }, + { BT_green, COLOR_GREEN }, + { BT_red, COLOR_RED }, + { BT_none, 0 } }; //myColorTable int i = 0; @@ -103,36 +103,36 @@ void InitScreens(void) } //I've never worked on a color-changable terminal, so no idea.. for (i = 0; myColorTable[i].type != BT_none; ++i) init_pair(myColorTable[i].type, COLOR_BLACK, - myColorTable[i].color); + myColorTable[i].color); } //haveColor #else haveColor = 0; #endif - AtExit(CleanupScreens); //restore everything when done + AtExit(CleanupScreens); //restore everything when done RestoreSignals(NULL, &oldMask); - cbreak(); //no line buffering + cbreak(); //no line buffering noecho(); -// keypad(stdscr, TRUE); //get arrow/functionkeys 'n stuff +// keypad(stdscr, TRUE); //get arrow/functionkeys 'n stuff OutputTermStr(term_vi, 0); - AddEventGen(&keyGen); //key handler - signal(SIGWINCH, CatchWinCh); //handle window resize + AddEventGen(&keyGen); //key handler + signal(SIGWINCH, CatchWinCh); //handle window resize // ioctl(STDIN_FILENO, KDSKBMODE, K_MEDIUMRAW); - standend(); //normal text + standend(); //normal text memset(messages, 0, sizeof(messages)); //empty messages { int i; for (i = 0; i