finch/libgnt/test/key.c@05ca719b901b
finch/libgnt/test/key.c
Wed, 13 May 2009 20:29:03 +0000
- author
- Marcus Lundblad <malu@pidgin.im>
- date
- Wed, 13 May 2009 20:29:03 +0000
- changeset 27110
- 05ca719b901b
- parent 18762
-
1d4a091693f5
- permissions
- -rw-r--r--
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.
#include <ncurses.h>
int main()
{
int ch;
initscr();
noecho();
cbreak();
refresh();
WINDOW *win = newpad(20, 30);
box(win, 0, 0);
prefresh(win, 0, 0, 0, 0, 19, 29);
doupdate();
while ((ch = getch())) {
printw("%d ", ch);
refresh();
}
endwin();
return 0;
}