Mercurial > pidgin.yaz
view finch/libgnt/test/key.c @ 26951:329f5a43b68a
merge of '49bc9af35492c4f9b66f7233c77ec192432a00f0'
and '70ee1de1cc79688256a3dd6ac1a519e24c00a12c'
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Mon, 11 May 2009 22:05:00 +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; }