view finch/libgnt/test/key.c @ 25689:7741759e741a

propagate from branch 'im.pidgin.pidgin' (head 3224dd8677b28d02b866cce510941fbf67e0fcb7) to branch 'im.pidgin.cpw.malu.xmpp.idle' (head 9dfa59217f19d3a885590a66ec6faca4e8b568a2)
author Paul Aurich <paul@darkrain42.org>
date Mon, 02 Feb 2009 22:51:52 +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;
}