mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-19 14:45:29 +00:00
Kittens can opt in with Loop.DetailedWheelEvents(), after which scroll events arrive as MOUSE_WHEEL mouse events whose Wheel field has the deltas, unit, multiplier, source, phase and momentum/inverted flags. WheelEvent.Lines() converts the deltas to lines using the terminal's multiplier when available. The mouse-demo kitten uses this to move a block drawn with the graphics protocol up and down with pixel precision, falling back to wheel button presses in terminals without support, and shows the event details. |
||
|---|---|---|
| .. | ||
| cli | ||
| cmd | ||
| config | ||
| crypto | ||
| disk_cache | ||
| fzf | ||
| highlight | ||
| icons | ||
| ignorefiles | ||
| rsync | ||
| simdstring | ||
| themes | ||
| tty | ||
| tui | ||
| unicode_names | ||
| utils | ||
| vt | ||
| watch | ||
| wcswidth | ||
| README.rst | ||
This folder contains library and utility code for the various "kittens". Small terminal programs compiled statically for doing things like kitty remote control, icat etc. These are often re-implementations of earlier kittens that were written in Python.