Mercurial > pidgin.yaz
changeset 14958:6dbff723fabc
[gaim-migrate @ 17736]
This simply reads input characters and prints the returned value from getch.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 11 Nov 2006 00:59:11 +0000 |
parents | 0b98802a97cf |
children | c9c1ce4a70b6 |
files | console/libgnt/test/key.c |
diffstat | 1 files changed, 18 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/console/libgnt/test/key.c Sat Nov 11 00:59:11 2006 +0000 @@ -0,0 +1,18 @@ +#include <ncurses.h> + +int main() +{ + int ch; + initscr(); + + noecho(); + + while ((ch = getch()) != 27) { + printw("%d ", ch); + refresh(); + } + + endwin(); + return 0; +} +