Mercurial > pidgin.yaz
view finch/libgnt/test/key.c @ 31444:93410d06cb51
propagate from branch 'im.pidgin.pidgin' (head e7abe20448d307649f623c608ecd470060b5f40d)
to branch 'im.pidgin.cpw.qulogic.cairo' (head 8fc85ec45252e4e75ffb22c92f34ea8242151b5c)
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sun, 08 Aug 2010 20:36:10 +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; }