DECSET SGR 1006 中鼠标滚轮 left/right 的按钮代码是什么?

What are the button codes for mouse scroll wheel left/right, in DECSET SGR 1006?

DECSET 1006

The encoding takes the form of CSI < Cb ; Cx ; Cy M when a button is pressed, and CSI < Cb ; Cx ; Cy m when a button is released, where:

Each field is encoded as an ASCII integer.
Cb is the button & keyboard modifiers.
Cx is the column.
Cy is the row.

(来自 https://github.com/chromium/hterm/blob/master/doc/ControlSequences.md - 我搜索了很多,但这是我搜索过的最详细的描述。我可能搜索错了)

左右滚轮的 Cb 按钮修饰符是什么?

滚轮 up/down 为 64/65(即按钮 1/2 + 64 xterm, wheel mice),这些在 vim 中有效。滚轮 left/right 可能是 66/67,但这在 vim 中不起作用。

实际上,我真的不需要正确的数字 - 只需要 vim 接受的数字...

滚轮 left/right 未被 xterm 检测到,因此未记录:没有预定义的 X 事件 对应于这(尽管可能对特定设备进行了一些创造性的使用)。如果您对此不确定,xev 可用于显示事件(尽管解释它们可能很困难)。

关于 the link, it doesn't appear to be complete, unless you're using hterm. In any case, it's moved

另一方面,xterm 通过按钮 4/5 检测滚轮 up/down,使用 translations 资源(参见手册中的 default key-bindings)。名称 Btn4Up 等在 X ToolKit 中预定义为与 X 事件相对应并且(在 1987 年在 X11 中引入)早于大约十年它们用于滚轮鼠标编码。虽然 可能 扩展这些事件,但我还没有看到它已经完成(或被 vim 使用)。