Mercurial > pidgin.yaz
view finch/libgnt/test/key.c @ 20628:b8962a8c5daa
merge of '33aead6e626883ef6ad44b79099f01d2da042d9a'
and 'f76b9e1feb23d6a4308ca0c80f5f85765d985aff'
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 23 Sep 2007 22:08:46 +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; }