Mercurial > pidgin
view console/libgnt/gntkeys.c @ 14300:b8697618399a
[gaim-migrate @ 16990]
oops, that was stupid. I blame the juicey goodness.
Now that we actually properly set the protocol, it seems to work.
I can send and receive messages back and forth between gaim on yahoo and windows live messenger.
Messages I send seem to end up with </font>'s in them.
Status updates also seem to work to some degree
committer: Tailor Script <tailor@pidgin.im>
author | Tim Ringenbach <marv@pidgin.im> |
---|---|
date | Wed, 23 Aug 2006 02:21:00 +0000 |
parents | ae4cbed1b309 |
children | 70623f0d5cdc |
line wrap: on
line source
#include "gntkeys.h" #include <string.h> void gnt_keys_refine(char *text) { if (text[0] == 27) { /* These are for urxvt */ if (strcmp(text + 1, "Oa") == 0) { strcpy(text + 1, GNT_KEY_CTRL_UP); } else if (strcmp(text + 1, "Ob") == 0) { strcpy(text + 1, GNT_KEY_CTRL_DOWN); } } else if ((unsigned char)text[0] == 195) { /* These for xterm */ if (text[2] == 0) { text[0] = 27; text[1] -= 64; } } }