From: <sa...@us...> - 2006-11-13 16:41:15
|
Revision: 17736 http://svn.sourceforge.net/gaim/?rev=17736&view=rev Author: sadrul Date: 2006-11-10 16:59:11 -0800 (Fri, 10 Nov 2006) Log Message: ----------- This simply reads input characters and prints the returned value from getch. Added Paths: ----------- trunk/console/libgnt/test/key.c Added: trunk/console/libgnt/test/key.c =================================================================== --- trunk/console/libgnt/test/key.c (rev 0) +++ trunk/console/libgnt/test/key.c 2006-11-11 00:59:11 UTC (rev 17736) @@ -0,0 +1,18 @@ +#include <ncurses.h> + +int main() +{ + int ch; + initscr(); + + noecho(); + + while ((ch = getch()) != 27) { + printw("%d ", ch); + refresh(); + } + + endwin(); + return 0; +} + Property changes on: trunk/console/libgnt/test/key.c ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |