diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2012-04-12 17:02:45 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2012-04-12 17:02:45 +0100 |
commit | 8cf08582766e662b1dbc979b4f5b8dfb60ed4e90 (patch) | |
tree | 2eea3cb2ad5cb24f49c07087753c1b830a916593 /t | |
parent | 84378bcba829e080a143bba85a1c09e9b1a18b5e (diff) | |
download | termo-8cf08582766e662b1dbc979b4f5b8dfb60ed4e90.tar.gz termo-8cf08582766e662b1dbc979b4f5b8dfb60ed4e90.tar.xz termo-8cf08582766e662b1dbc979b4f5b8dfb60ed4e90.zip |
Use spare bits in code.mouse[3] to store bigger mouse positions
Diffstat (limited to 't')
-rw-r--r-- | t/30mouse.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/t/30mouse.c b/t/30mouse.c index a466bb4..f6cb707 100644 --- a/t/30mouse.c +++ b/t/30mouse.c @@ -10,7 +10,7 @@ int main(int argc, char *argv[]) char buffer[32]; size_t len; - plan_tests(58); + plan_tests(60); /* vt100 doesn't have a mouse, we need xterm */ tk = termkey_new_abstract("xterm", 0); @@ -126,6 +126,14 @@ int main(int argc, char *argv[]) is_int(ev, TERMKEY_MOUSE_RELEASE, "mouse event for release SGR"); + termkey_push_bytes(tk, "\e[<0;500;300M", 13); + + termkey_getkey(tk, &key); + termkey_interpret_mouse(tk, &key, &ev, &button, &line, &col); + + is_int(line, 300, "mouse line for press SGR wide"); + is_int(col, 500, "mouse column for press SGR wide"); + termkey_destroy(tk); return exit_status(); |