view finch/libgnt/test/key.c @ 22865:0b3dfb83e7c0

merge of '456501a9151822d8b2538d62e92918e5126f93bc' and 'e3b8963da04c30b9550f678536ab3874b0ffb6c5'
author Björn Voigt <bjoern@cs.tu-berlin.de>
date Sat, 10 May 2008 21:36:14 +0000
parents f104e1d45d85
children
line wrap: on
line source

#include <ncurses.h>

int main()
{
	int ch;

	initscr();
	noecho();
	cbreak();
	refresh();

	WINDOW *win = newpad(20, 30);
	box(win, 0, 0);
	prefresh(win, 0, 0, 0, 0, 19, 29);
	doupdate();

	while ((ch = getch())) {
		printw("%d ", ch);
		refresh();
	}

	endwin();
	return 0;
}