From 8877d218ddf7347cd813f60fa465545f11e8af77 Mon Sep 17 00:00:00 2001 From: Egmont Koblinger Date: Tue, 16 Jun 2020 21:58:25 +0300 Subject: [PATCH] Ticket #4063: fix mouse handling in old terminal emulatres ...like KDE3 Konsole. Signed-off-by: Andrew Borodin --- lib/tty/tty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tty/tty.c b/lib/tty/tty.c index a232cd96e..35c01a154 100644 --- a/lib/tty/tty.c +++ b/lib/tty/tty.c @@ -363,11 +363,11 @@ tty_init_xterm_support (gboolean is_xterm) /* There's only one termcap entry "kmous", typically containing "\E[M" or "\E[<". * We need the former in xmouse_seq, the latter in xmouse_extended_seq. - * See tickets 2956 and 3954 for details. */ + * See tickets 2956, 3954, and 4063 for details. */ if (xmouse_seq != NULL) { if (strcmp (xmouse_seq, ESC_STR "[<") == 0) - xmouse_seq = NULL; + xmouse_seq = ESC_STR "[M"; xmouse_extended_seq = ESC_STR "[<"; }