Mercurial > pidgin
view console/libgnt/gntkeys.c @ 14431:0ed8b285a44b
[gaim-migrate @ 17145]
This fixes compiling for me. The problem is that panel.h includes
/usr/include/ncurses/curses.h, which then prevents us from
correctly including /usr/include/ncursesw/ncurses.h. So I just
moved the include for panel.h below the other include
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 03 Sep 2006 21:22:14 +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; } } }