-
-
Save anonymous/0b424eecd75c9c2815ec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <curses.h> | |
#include <wchar.h> | |
#include <termios.h> | |
#include <unistd.h> | |
static struct termios def_term; | |
static struct termios game_term; | |
int main(void) { | |
initscr(); | |
raw(); | |
keypad(stdscr, TRUE); | |
wint_t in; | |
int myreturn = get_wch(&in); | |
endwin(); | |
printf("Read %d:%d\n", myreturn, in); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment