From f1f9a00cda728eabd833e81e14cc7606bb34986a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?P=C5=99emysl=20Janouch?=
Date: Wed, 22 Oct 2014 22:23:01 +0200
Subject: Add support for setting the mouse protocol
---
termo-internal.h | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
(limited to 'termo-internal.h')
diff --git a/termo-internal.h b/termo-internal.h
index b9a27c2..b2b1c3a 100644
--- a/termo-internal.h
+++ b/termo-internal.h
@@ -80,6 +80,22 @@ struct termo
termo_key_t *key, size_t *nbytes);
}
method;
+
+ int guessed_mouse_proto; // What we think should be the mouse protocol
+ int mouse_proto; // The active mouse protocol
+ termo_mouse_tracking_t mouse_tracking; // Mouse tracking mode
+
+ // The mouse unfortunately directly depends on the terminfo driver to let
+ // it handle changes in the mouse protocol.
+
+ void *ti_data; // termo_ti_t pointer
+
+ struct
+ {
+ bool (*set_mouse_proto) (void *, int, bool);
+ bool (*set_mouse_tracking_mode) (void *, termo_mouse_tracking_t, bool);
+ }
+ ti_method;
};
static inline void
--
cgit v1.2.3