view finch/libgnt/test/key.c @ 16410:58a097859388

merge of '5a1b790556f2372c9cfc080af4a11e3c3d19b2ce' and '7b2e3a93824b2aa9d1939d622c2d12f0bd02ee5d'
author Richard Laager <rlaager@wiktel.com>
date Wed, 25 Apr 2007 05:25:57 +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;
}