=== modified file 'termkey.c' --- termkey.c 2011-06-16 16:07:47 +0000 +++ termkey.c 2011-05-28 10:55:46 +0000 @@ -743,10 +743,10 @@ *button = 0; if(col) - *col = (unsigned char)key->code.mouse[1]; + *col = key->code.mouse[1]; if(line) - *line = (unsigned char)key->code.mouse[2]; + *line = key->code.mouse[2]; if(!event) return TERMKEY_RES_KEY; @@ -1070,7 +1070,7 @@ if(l <= 0) return pos; pos += l; - l = snprintf(buffer + pos, len - pos, " @ (%u,%u)", col, line); + l = snprintf(buffer + pos, len - pos, " @ (%d,%d)", col, line); } } break;