Mercurial > pidgin
comparison finch/libgnt/test/key.c @ 19174:974f9298814c
propagate from branch 'im.pidgin.pidgin.2.1.0' (head 1b855097a1f8ddde513bda1e81761c8d8455f931)
to branch 'im.pidgin.soc.2007.finchfeat' (head 547aba29502f4db0b429e29c831c88b06270862e)
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 11 Aug 2007 02:38:56 +0000 |
parents | f104e1d45d85 |
children |
comparison
equal
deleted
inserted
replaced
19097:7ee44399f2ea | 19174:974f9298814c |
---|---|
1 #include <ncurses.h> | 1 #include <ncurses.h> |
2 | 2 |
3 int main() | 3 int main() |
4 { | 4 { |
5 int ch; | 5 int ch; |
6 | |
6 initscr(); | 7 initscr(); |
8 noecho(); | |
9 cbreak(); | |
10 refresh(); | |
7 | 11 |
8 noecho(); | 12 WINDOW *win = newpad(20, 30); |
13 box(win, 0, 0); | |
14 prefresh(win, 0, 0, 0, 0, 19, 29); | |
15 doupdate(); | |
9 | 16 |
10 while ((ch = getch())) { | 17 while ((ch = getch())) { |
11 printw("%d ", ch); | 18 printw("%d ", ch); |
12 refresh(); | 19 refresh(); |
13 } | 20 } |