view console/libgnt/test/key.c @ 14985:6bdcfafc2259

[gaim-migrate @ 17764] Don't install incompatible GTK+ versions on Win95/98/ME. Alert the user about the incompatibility and abort installation if a good version of GTK+ isn't already installed. Also don't allow a theme selection because it wont work with our GTK+ 2.6.10 runtime. committer: Tailor Script <tailor@pidgin.im>
author Daniel Atallah <daniel.atallah@gmail.com>
date Fri, 17 Nov 2006 03:26:19 +0000
parents 6dbff723fabc
children 50c25be2563b
line wrap: on
line source

#include <ncurses.h>

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

	noecho();

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

	endwin();
	return 0;
}