view finch/libgnt/test/key.c @ 16032:c1989aa3d52e

an updated translation
author Luke Schierer <lschiere@pidgin.im>
date Mon, 09 Apr 2007 19:44:12 +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;
}