view finch/libgnt/test/key.c @ 22793:2ff3eb79078d

Change the "Screen name" text to "Username" per a number of discussions on the mailing lists, IRC, and XMPP. This will truly come to fruition when we merge im.pidgin.pidgin.next.minor back here, gaining us the help text in the entry area.
author John Bailey <rekkanoryo@rekkanoryo.org>
date Wed, 30 Apr 2008 06:02:26 +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;
}