Wed, 13 May 2009 20:29:03 +0000
Support custom smileys in MUCs (when all participants support BoB and a maximum
of 10 participants are in the chat).
Always announce support for BoB, since disable custom smileys will still turn
off fetching them, and BoB can be used for other purposes further on.
|
15019
825ed14a3aa7
[gaim-migrate @ 17736]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
1 | #include <ncurses.h> |
|
825ed14a3aa7
[gaim-migrate @ 17736]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
2 | |
|
825ed14a3aa7
[gaim-migrate @ 17736]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
3 | int main() |
|
825ed14a3aa7
[gaim-migrate @ 17736]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
4 | { |
|
825ed14a3aa7
[gaim-migrate @ 17736]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
5 | int ch; |
|
825ed14a3aa7
[gaim-migrate @ 17736]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
6 | |
|
18762
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
7 | initscr(); |
|
15019
825ed14a3aa7
[gaim-migrate @ 17736]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
8 | noecho(); |
|
18762
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
9 | cbreak(); |
|
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
10 | refresh(); |
|
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
11 | |
|
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
12 | WINDOW *win = newpad(20, 30); |
|
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
13 | box(win, 0, 0); |
|
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
14 | prefresh(win, 0, 0, 0, 0, 19, 29); |
|
1d4a091693f5
Changes to the test apps.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15886
diff
changeset
|
15 | doupdate(); |
|
15019
825ed14a3aa7
[gaim-migrate @ 17736]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
16 | |
|
15804
a06705e0130e
Better handle large windows that don't fit into the screen (eg. the preference
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
15019
diff
changeset
|
17 | while ((ch = getch())) { |
|
15019
825ed14a3aa7
[gaim-migrate @ 17736]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
18 | printw("%d ", ch); |
|
825ed14a3aa7
[gaim-migrate @ 17736]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
19 | refresh(); |
|
825ed14a3aa7
[gaim-migrate @ 17736]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
20 | } |
|
825ed14a3aa7
[gaim-migrate @ 17736]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
21 | |
|
825ed14a3aa7
[gaim-migrate @ 17736]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
22 | endwin(); |
|
825ed14a3aa7
[gaim-migrate @ 17736]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
23 | return 0; |
|
825ed14a3aa7
[gaim-migrate @ 17736]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
24 | } |
|
825ed14a3aa7
[gaim-migrate @ 17736]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
25 |