view finch/libgnt/test/key.c @ 17957:3bd88cbdd204

Add support for sending emoticons.
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Fri, 20 Jul 2007 05:50:03 +0000
parents 0e3a8505ebbe
children f104e1d45d85
line wrap: on
line source

#include <ncurses.h>

int main()
{
	int ch;
	initscr();

	noecho();

	while ((ch = getch())) {
		printw("%d ", ch);
		refresh();
	}

	endwin();
	return 0;
}