From 56793ca04f711e17173cdc82c7936d74bc614d71 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Thu, 1 Jun 2017 04:43:34 -0400 Subject: actually, we probably should support utf8 as a mouse reporting mode --- src/parser.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'src/parser.c') diff --git a/src/parser.c b/src/parser.c index 4eeea45..a4508c7 100644 --- a/src/parser.c +++ b/src/parser.c @@ -2723,13 +2723,13 @@ static void vt100_parser_handle_ris(VT100Screen *vt) vt100_screen_save_cursor(vt); vt100_screen_reset_text_attributes(vt); vt100_screen_show_cursor(vt); + vt100_screen_set_mouse_reporting_normal_mode(vt); vt100_screen_reset_application_keypad(vt); vt100_screen_reset_application_cursor(vt); vt100_screen_reset_mouse_reporting_press(vt); vt100_screen_reset_mouse_reporting_press_release(vt); vt100_screen_reset_mouse_reporting_button_motion(vt); vt100_screen_reset_mouse_reporting_any_motion(vt); - vt100_screen_reset_mouse_reporting_sgr_mode(vt); vt100_screen_reset_bracketed_paste(vt); vt100_screen_reset_origin_mode(vt); } @@ -3054,6 +3054,9 @@ static void vt100_parser_handle_sm(VT100Screen *vt, char *buf, size_t len) case 1003: vt100_screen_set_mouse_reporting_any_motion(vt); break; + case 1005: + vt100_screen_set_mouse_reporting_utf8_mode(vt); + break; case 1006: vt100_screen_set_mouse_reporting_sgr_mode(vt); break; @@ -3066,10 +3069,6 @@ static void vt100_parser_handle_sm(VT100Screen *vt, char *buf, size_t len) break; case 12: // blinking cursor // not interested in blinking cursors - case 1005: // UTF-8 mouse tracking mode - // will just default this to always on. might break some - // programs, but the programs that will break will already be - // broken for terms with width greater than 223. case 1034: // interpret Meta key // not actually sure if ignoring this is correct - need to see // what exactly it does. don't think it's important though. @@ -3131,8 +3130,9 @@ static void vt100_parser_handle_rm(VT100Screen *vt, char *buf, size_t len) case 1003: vt100_screen_reset_mouse_reporting_any_motion(vt); break; + case 1005: case 1006: - vt100_screen_reset_mouse_reporting_sgr_mode(vt); + vt100_screen_set_mouse_reporting_normal_mode(vt); break; case 47: case 1049: @@ -3143,10 +3143,6 @@ static void vt100_parser_handle_rm(VT100Screen *vt, char *buf, size_t len) break; case 12: // blinking cursor // not interested in blinking cursors - case 1005: // UTF-8 mouse tracking mode - // will just default this to always on. might break some - // programs, but the programs that will break will already be - // broken for terms with width greater than 223. case 1034: // interpret Meta key // not actually sure if ignoring this is correct - need to see // what exactly it does. don't think it's important though. -- cgit v1.2.3-54-g00ecf