finch/libgnt/test/key.c

Fri, 02 Aug 2013 23:38:37 +0530

author
Ankit Vani <a@nevitus.org>
date
Fri, 02 Aug 2013 23:38:37 +0530
branch
soc.2013.gobjectification.plugins
changeset 36421
42c3ae9b96d7
parent 18762
1d4a091693f5
permissions
-rw-r--r--

Better placed calls to gplugin_plugin_get_info() and its unref

#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;
}

mercurial