view finch/libgnt/test/key.c @ 21732:200b79605991

Change our QQ_CLIENT version, which allows us to sign on to QQ accounts. I have no idea how well QQ works, though. Anybody have a QQ account? Please add me, because I don't have any friends. My number is 835612889. References #2998.
author Mark Doliner <mark@kingant.net>
date Sun, 02 Dec 2007 21:49:49 +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;
}