patch 9.1.1907: xterm: no support for mouse buttons 8 and 9

Problem:  xterm: no support for mouse buttons 8 and 9
Solution: Add support for terminals with xterm-like mouse functionality
          (notuxic)

closes: #18719

Signed-off-by: notuxic <notuxic@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
notuxic
2025-11-11 17:52:45 +00:00
committed by Christian Brabandt
parent efc3be77bb
commit 7dd51d3542
5 changed files with 75 additions and 3 deletions

View File

@ -1,4 +1,4 @@
*term.txt* For Vim version 9.1. Last change: 2025 Nov 09
*term.txt* For Vim version 9.1. Last change: 2025 Nov 11
VIM REFERENCE MANUAL by Bram Moolenaar
@ -1167,7 +1167,8 @@ Mouse clicks can be mapped. The codes for mouse clicks are:
The X1 and X2 buttons refer to the extra buttons found on some mice. The
'Microsoft Explorer' mouse has these buttons available to the right thumb.
Currently X1 and X2 only work on Win32 and X11 environments.
Currently, X1 and X2 work only on Win32 and X11 environments, and in terminals
that support xterm-like mouse functionality.
Examples: >
:noremap <MiddleMouse> <LeftMouse><MiddleMouse>