diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2012-12-06 02:09:03 +0000 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2012-12-06 02:09:03 +0000 |
commit | 5190963f1baf22a313ed70a964c2a83174f4e841 (patch) | |
tree | 5a7ef9e5a6089318a8950c13a1fc4c205a0ce62a /termkey.c | |
parent | 58850dbac237f7dc7cf9420ef5bde1f9b0f28701 (diff) | |
download | termo-5190963f1baf22a313ed70a964c2a83174f4e841.tar.gz termo-5190963f1baf22a313ed70a964c2a83174f4e841.tar.xz termo-5190963f1baf22a313ed70a964c2a83174f4e841.zip |
Make sure to implement newer event types in debug function
Diffstat (limited to 'termkey.c')
-rw-r--r-- | termkey.c | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -141,6 +141,23 @@ static void print_key(TermKey *tk, TermKeyKey *key) fprintf(stderr, "Mouse ev=%d button=%d pos=(%d,%d)\n", ev, button, line, col); } break; + case TERMKEY_TYPE_POSITION: + { + int line, col; + termkey_interpret_position(tk, key, &line, &col); + fprintf(stderr, "Position report pos=(%d,%d)\n", line, col); + } + break; + case TERMKEY_TYPE_MODEREPORT: + { + int initial, mode, value; + termkey_interpret_modereport(tk, key, &initial, &mode, &value); + fprintf(stderr, "Mode report mode=%s %d val=%d\n", initial == '?' ? "DEC" : "ANSI", mode, value); + } + break; + case TERMKEY_TYPE_UNKNOWN_CSI: + fprintf(stderr, "unknown CSI\n"); + break; } int m = key->modifiers; |