From 06cd14d0bf990d0002d61a721aa3d5b8a3c44028 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 10 Jan 2023 12:37:38 +0000 Subject: patch 9.0.1168: code to enable/disable mouse is not from terminfo/termcap Problem: Code to enable/disable mouse is not from terminfo/termcap. Solution: Request the "XM" entry and use it to set 'ttymouse' if possible. --- runtime/doc/options.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index a514b6f28..0fc00b4fb 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -8679,6 +8679,9 @@ A jump table for the options with a short description can be found at |Q_op|. set to a name that starts with "xterm", "mlterm", "screen", "tmux", "st" (full match only), "st-" or "stterm", and 'ttymouse' is not set already. + If the terminfo/termcap entry "XM" exists and the first number is + "1006" then 'ttymouse' will be set to "sgr". This works for many + modern terminals. Additionally, if vim is compiled with the |+termresponse| feature and |t_RV| is set to the escape sequence to request the xterm version number, more intelligent detection is done. -- cgit v1.2.1