Mercurial > pidgin
view finch/libgnt/test/key.c @ 29731:2e0dffa155db
merge of '0a2b3d194869ba6d7da504c295d74e41e6a38633'
and '81475e0c8a58feff71c5b6f773bb62f7a059fb73'
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 15 Apr 2010 00:49:01 +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; }