Mercurial > pidgin
view finch/libgnt/test/key.c @ 25602:de4393eba497
merge of 'c2b098e0aaf7e6fffec72b3130cb4c851c7a64c1'
and 'ff639e31b359f9399c39cfaa0f02ca3c57686d7b'
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Mon, 04 May 2009 00:02:04 +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; }