kitty/kitty_tests
Trygve Aaberge 8efe08c45b Support more mouse buttons for terminal mouse events
Previously, the mouse back and forward buttons sent the same codes as
scroll up and down. Now they instead send the same codes as xterm. Mouse
button 10 (in X11 numbering) also now sends the same as xterm, instead
of not sending anything.

This also changes the `send_mouse_event` function which can be called
from kittens to use X11 numbering for mouse buttons instead of what it
previously used, which turns out to be a hybrid of X11 and GLFW. It was
documented to use GLFW numbering, but GLFW doesn't have numbers for
scroll events (that's separate events with x/y offsets) and 4 and 5 in
GLFW is actually back and forward, while `send_mouse_event` interpreted
it as scroll up and down.

That means that this is a breaking change for `send_mouse_event` because
it swaps the number for the middle and right button to be consistent
with X11. I did this because I think it's better to use one consistent
numbering scheme for the function, and because people probably know X11
numbering better than GLFW numbering and GLFW doesn't have numbers for
the scroll buttons.
2020-06-06 14:19:06 +02:00
..
__init__.py Make the set of URL prefixes that are recognized while hovering with the mouse configurable 2020-03-08 13:16:34 +05:30
bench_scrollback.py Add scrollback benchmark 2018-09-22 19:10:37 +09:00
choose.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
datatypes.py Rewrite wcswidth as a state machine 2020-04-07 10:10:30 +05:30
diff.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
FiraCode-Medium.otf Add a ligature shaping test 2017-11-11 20:55:53 +05:30
fonts.py And ever more coalesce tests 2020-05-17 23:20:26 +05:30
gr.py Use context managers to open files 2019-08-01 13:21:26 -05:00
graphics.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
hints.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
keys.py Support more mouse buttons for terminal mouse events 2020-06-06 14:19:06 +02:00
layout.py Port layout tests to new API 2020-05-12 22:43:55 +05:30
LiberationMono-Regular.ttf Use only cluster numbers and glyph sizes for grouping glyphs into cells 2017-11-12 23:43:21 +05:30
mouse.py Add tests for selection extension by right click 2020-03-18 20:57:19 +05:30
parser.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
screen.py pep8 2020-05-12 22:54:08 +05:30
tui.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00
unicode_input.py Use python3 shebang for all python scripts 2019-05-20 14:44:24 +02:00