Skip to content

Instantly share code, notes, and snippets.

Created May 4, 2013 22:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/0b424eecd75c9c2815ec to your computer and use it in GitHub Desktop.
Save anonymous/0b424eecd75c9c2815ec to your computer and use it in GitHub Desktop.
#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