Mercurial > pidgin.yaz
view finch/libgnt/test/key.c @ 25765:a259d2711416
merge of '0da3644551b2442b2db4cf9d828865d167df8072'
and 'efc71f836438eb97ec8d2c8e0874326b6fc64774'
author | Paul Aurich <paul@darkrain42.org> |
---|---|
date | Sun, 23 Nov 2008 03:52:40 +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; }