Mercurial > pidgin
view console/libgnt/gntkeys.c @ 14881:5228f8cf2a6a
[gaim-migrate @ 17650]
Print a debug message if someone tries to specify a binding for some non-existent action.
Make sure the conversation windows aren't too large to cause a crash.
raise(SIGABRT) instead of exit() to force a coredump if something goes wrong with stdin.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Wed, 01 Nov 2006 20:59:23 +0000 |
parents | c01f62c83647 |
children | 99112cd4a2f4 |
line wrap: on
line source
#include "gntkeys.h" #include <stdlib.h> #include <string.h> const char *term; void gnt_keys_refine(char *text) { if (*text == 27 && *(text + 1) == '[' && *(text + 3) == '\0' && (*(text + 2) >= 'A' || *(text + 2) <= 'D')) { if (term == NULL) term = getenv("TERM"); /* Apparently this is necessary for urxvt and screen */ if (strcmp(term, "screen") == 0 || strcmp(term, "rxvt-unicode") == 0) *(text + 1) = 'O'; } }