Mercurial > pidgin
view finch/libgnt/test/key.c @ 22976:93e9c1ba9498
merge of '383b6a0002c1ecea40d3836f462b7119e6c6f473'
and 'acfb910199a1f3bb2621328feae0a8d1b8c87f77'
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Fri, 16 May 2008 18:21:57 +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; }