view finch/libgnt/test/key.c @ 18130:d955d9bd7ea7

Treat some more types as simple types. This allows exporting some useful functions for dbus. Can this cause problems?
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Sat, 16 Jun 2007 22:20:13 +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;
}