summaryrefslogtreecommitdiffstats
path: root/src/screen.c
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2017-06-01 04:43:34 -0400
committerJesse Luehrs <doy@tozt.net>2017-06-02 00:42:43 -0400
commit56793ca04f711e17173cdc82c7936d74bc614d71 (patch)
tree8abbf5522777d6d4b088ba57d6d8df9f5723d358 /src/screen.c
parent4f95667e4785d780e87cd597fd89b7b902ad1545 (diff)
downloadlibvt100-56793ca04f711e17173cdc82c7936d74bc614d71.tar.gz
libvt100-56793ca04f711e17173cdc82c7936d74bc614d71.zip
actually, we probably should support utf8 as a mouse reporting mode
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/screen.c b/src/screen.c
index 0121124..c471ebd 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -832,14 +832,19 @@ void vt100_screen_reset_mouse_reporting_any_motion(VT100Screen *vt)
vt->mouse_reporting_any_motion = 0;
}
-void vt100_screen_set_mouse_reporting_sgr_mode(VT100Screen *vt)
+void vt100_screen_set_mouse_reporting_normal_mode(VT100Screen *vt)
{
- vt->mouse_reporting_sgr_mode = 1;
+ vt->mouse_reporting_mode = VT100_MOUSEREPORTING_NORMAL;
}
-void vt100_screen_reset_mouse_reporting_sgr_mode(VT100Screen *vt)
+void vt100_screen_set_mouse_reporting_utf8_mode(VT100Screen *vt)
+{
+ vt->mouse_reporting_mode = VT100_MOUSEREPORTING_UTF8;
+}
+
+void vt100_screen_set_mouse_reporting_sgr_mode(VT100Screen *vt)
{
- vt->mouse_reporting_sgr_mode = 0;
+ vt->mouse_reporting_mode = VT100_MOUSEREPORTING_SGR;
}
int vt100_screen_mouse_reporting_wants_button_press(VT100Screen *vt)