view finch/libgnt/test/key.c @ 16863:1a1e5a68990c

Noting NAT-PMP support and adding R. Tyler Ballance, author of most of the nat-pmp.c code, to COPYRIGHT
author Evan Schoenberg <evan.s@dreskin.net>
date Fri, 04 May 2007 04:14:19 +0000
parents 0e3a8505ebbe
children f104e1d45d85
line wrap: on
line source

#include <ncurses.h>

int main()
{
	int ch;
	initscr();

	noecho();

	while ((ch = getch())) {
		printw("%d ", ch);
		refresh();
	}

	endwin();
	return 0;
}