view finch/libgnt/test/key.c @ 18525:59c361c2f25b

Revert one of the last changes. Always allow drag-drop from the infopane. The drag-drop annoyed me a few times, but no one else had complained about it. So there was no reason for changing it.
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Fri, 13 Jul 2007 16:05:30 +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;
}