From 2519c49c02a26534cb24dc3331d14b3153d32f83 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 4 Aug 2017 20:09:18 +0530 Subject: [PATCH] Fix incorrect escape codes generated when using the obsolete "normal" mouse protocol. Fixes #105 --- kitty/mouse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/mouse.py b/kitty/mouse.py index 26274bc41..704110634 100644 --- a/kitty/mouse.py +++ b/kitty/mouse.py @@ -58,5 +58,5 @@ def encode_mouse_event(tracking_mode, tracking_protocol, button, action, mods, x ans = bytes(ans) else: if x <= 223 and y <= 223: - ans = bytearray([0o33, ord('['), cb + 32, x + 32, y + 32]) + ans = bytearray([0o33, ord('['), ord('M'), cb + 32, x + 32, y + 32]) return ans