Mercurial > pidgin
changeset 17819:d8b9bea550bc
Added a few lines to gnt_main::io_invoke to deal with ALT not sending ESC.
author | Eric Polino <aluink@pidgin.im> |
---|---|
date | Mon, 21 May 2007 14:50:01 +0000 |
parents | c5ca1d9b67fa |
children | 96ee9852d023 |
files | finch/gntdebug.c finch/libgnt/gntkeys.c finch/libgnt/gntmain.c |
diffstat | 3 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/gntdebug.c Fri May 18 14:00:33 2007 +0000 +++ b/finch/gntdebug.c Mon May 21 14:50:01 2007 +0000 @@ -298,7 +298,7 @@ REGISTER_G_LOG_HANDLER("GThread"); g_set_print_handler(print_stderr); /* Redirect the debug messages to stderr */ - g_set_printerr_handler(suppress_error_messages); +// g_set_printerr_handler(suppress_error_messages); purple_prefs_add_none(PREF_ROOT); purple_prefs_add_string(PREF_ROOT "/filter", "");
--- a/finch/libgnt/gntkeys.c Fri May 18 14:00:33 2007 +0000 +++ b/finch/libgnt/gntkeys.c Mon May 21 14:50:01 2007 +0000 @@ -127,6 +127,7 @@ *(text + 1) -= 64; /* Say wha? */ } } +// fprintf(stderr,"gnt_keys_refine::text==%d %d %d\n",*(unsigned char*)text,*(unsigned char *)(text+1),*(unsigned char *)(text +2)); } const char *gnt_key_translate(const char *name)
--- a/finch/libgnt/gntmain.c Fri May 18 14:00:33 2007 +0000 +++ b/finch/libgnt/gntmain.c Mon May 21 14:50:01 2007 +0000 @@ -224,6 +224,13 @@ if (HOLDING_ESCAPE) keys[0] = '\033'; k = keys; + if(*k < 0){//alt not sending ESC + *(k + 1) = 128 - *k; + *k = 27; + *(k + 2) = 0; + rd++; + } +// fprintf(stderr,"io_invoke:%d %d %d %d\n",rd, *k, *(k+1), *(k+2)); while (rd) { char back; int p;