Mercurial > pidgin.yaz
annotate finch/libgnt/test/key.c @ 22126:22908b354baf
Two performance/network bandwidth related changes here, care of meebo.
1. Only auto-fetch stuff for people who are away, because we really
only want their away message. This changes oscar to NOT auto-fetch
people's profile info. That doesn't matter for Pidgin and I don't
think it matters for Finch. If it causes bad things for Adium or
other things then please let me know.
2. When auto-fetching stuff, only request the away message and not
the profile info, because we really only want the away message.
Again, if this causes bad things to happen then please let me know.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Wed, 16 Jan 2008 07:37:29 +0000 |
parents | f104e1d45d85 |
children |
rev | line source |
---|---|
15818 | 1 #include <ncurses.h> |
2 | |
3 int main() | |
4 { | |
5 int ch; | |
6 | |
18510
f104e1d45d85
Changes to the test apps.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
7 initscr(); |
15818 | 8 noecho(); |
18510
f104e1d45d85
Changes to the test apps.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
9 cbreak(); |
f104e1d45d85
Changes to the test apps.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
10 refresh(); |
f104e1d45d85
Changes to the test apps.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
11 |
f104e1d45d85
Changes to the test apps.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
12 WINDOW *win = newpad(20, 30); |
f104e1d45d85
Changes to the test apps.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
13 box(win, 0, 0); |
f104e1d45d85
Changes to the test apps.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
14 prefresh(win, 0, 0, 0, 0, 19, 29); |
f104e1d45d85
Changes to the test apps.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15818
diff
changeset
|
15 doupdate(); |
15818 | 16 |
17 while ((ch = getch())) { | |
18 printw("%d ", ch); | |
19 refresh(); | |
20 } | |
21 | |
22 endwin(); | |
23 return 0; | |
24 } | |
25 |