Expand description
Mouse-wheel handling for the embedded terminal.
On the normal screen a wheel notch scrolls the local vt100 scrollback. On the alternate screen (vim, less, htop, …) there is no scrollback, so the notch is forwarded to the foreground application instead — as native mouse-wheel sequences when it requested mouse reporting, or as cursor-key presses otherwise (xterm “alternate scroll” behaviour).
Enums§
- Scroll
Action - Resolved effect of a single mouse-wheel notch.
Functions§
- resolve_
scroll - Decides what a wheel
deltashould do given the foreground app’s state.