Mercurial > pidgin
view finch/libgnt/test/key.c @ 20703:60ba0f4d86a5
- Apply pidgin-old-gnutls-bugfixes.patch from #3192 with slight
modification. This compensates for an off-by-one error in old versions
of GnuTLS. Thanks to Elliott Sales de Andrade.
author | William Ehlhardt <williamehlhardt@gmail.com> |
---|---|
date | Sat, 29 Sep 2007 04:01:14 +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; }