aboutsummaryrefslogtreecommitdiff
path: root/t/30mouse.c
diff options
context:
space:
mode:
Diffstat (limited to 't/30mouse.c')
-rw-r--r--t/30mouse.c10
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();