view console/libgnt/test/key.c @ 15599:32f954e8d8aa

We're getting warnings about not honoring datarootdir, so I figured I'd add it. I'm not sure what that might break, but this stuff will be getting reviewed when it's renamed anyway.
author Richard Laager <rlaager@wiktel.com>
date Fri, 09 Feb 2007 17:08:26 +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;
}