view finch/libgnt/test/key.c @ 17613:7c79957207c3

Fixed a few bugs in the caps implementation, it should work properly now.
author Andreas Monitzer <pidgin@monitzer.com>
date Wed, 27 Jun 2007 03:56:30 +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;
}