From a791d7f58269c1baa846f568c7a7b14d0754b9e2 Mon Sep 17 00:00:00 2001 From: Marcin Maj Date: Fri, 14 Nov 2025 02:26:56 +0100 Subject: [PATCH] mc: Revert patches to handle newer terminfo Unfortunately, without this patch, there's still a problem with mouse handling using xterm-256color/busybox/ash. A partial workaround is to run mc through screen. After applying the fix, it works in both cases. This reverts commit fa01e8adfcae6d58cd780bc4578e1d27053932a9. Signed-off-by: Marcin Maj --- .../020-fix-mouse-handling-newer-terminfo.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 utils/mc/patches/020-fix-mouse-handling-newer-terminfo.patch diff --git a/utils/mc/patches/020-fix-mouse-handling-newer-terminfo.patch b/utils/mc/patches/020-fix-mouse-handling-newer-terminfo.patch new file mode 100644 index 00000000000000..3a066116e82b0a --- /dev/null +++ b/utils/mc/patches/020-fix-mouse-handling-newer-terminfo.patch @@ -0,0 +1,11 @@ +--- a/lib/tty/tty.c ++++ b/lib/tty/tty.c +@@ -408,7 +408,7 @@ tty_init_xterm_support (gboolean is_xter + if (xmouse_seq != NULL) + { + if (strcmp (xmouse_seq, ESC_STR "[<") == 0) +- xmouse_seq = ESC_STR "[M"; ++ xmouse_seq = NULL; + + xmouse_extended_seq = ESC_STR "[<"; + }