view finch/libgnt/test/key.c @ 17827:43961a41237a

When right-clicking on an image in a GtkIMHtml to save it, if the file extension is not recognized then make sure we strip off the user-entered file format and tack on a ".png" Fixes bug #914
author Mark Doliner <mark@kingant.net>
date Sun, 10 Jun 2007 21:58:45 +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;
}