view finch/libgnt/test/key.c @ 15911:0592a7b4db86

This was giving me a warning saying the function wasn't previously declared
author Mark Doliner <mark@kingant.net>
date Sun, 25 Mar 2007 03:30:58 +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;
}