Mercurial > pidgin.yaz
view finch/libgnt/test/key.c @ 16017:198983d7e546
Use ~/.gaim if it exists, else ~/.purple. If you think you can make this code
more efficient, please do. It works for me, so I'm shipping it.
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Mon, 09 Apr 2007 00:03:04 +0000 |
parents | 0e3a8505ebbe |
children | f104e1d45d85 |
line wrap: on
line source
#include <ncurses.h> int main() { int ch; initscr(); noecho(); while ((ch = getch())) { printw("%d ", ch); refresh(); } endwin(); return 0; }