view test/key.c @ 1342:bd08679f1603

Replace tree hash function prototypes by GLib ones.
author Elliott Sales de Andrade <quantum.analyst@gmail.com>
date Wed, 28 Aug 2019 20:39:28 -0400
parents 0578429294e6
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;
}