view finch/libgnt/test/key.c @ 18936:895831f93380

- Documentation correction
author William Ehlhardt <williamehlhardt@gmail.com>
date Fri, 22 Jun 2007 03:33:52 +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;
}