aboutsummaryrefslogtreecommitdiff
path: root/termo-internal.h
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2014-10-22 22:23:01 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2014-10-22 22:23:01 +0200
commitf1f9a00cda728eabd833e81e14cc7606bb34986a (patch)
treeae3b4e37a4c0e20778896dec1d049626b91b7bf2 /termo-internal.h
parent70bcfde0212b4009467f8551c197743b70355b99 (diff)
downloadtermo-f1f9a00cda728eabd833e81e14cc7606bb34986a.tar.gz
termo-f1f9a00cda728eabd833e81e14cc7606bb34986a.tar.xz
termo-f1f9a00cda728eabd833e81e14cc7606bb34986a.zip
Add support for setting the mouse protocol
Diffstat (limited to 'termo-internal.h')
-rw-r--r--termo-internal.h16
1 files changed, 16 insertions, 0 deletions
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