Skip to main content

Module scroll

Module scroll 

Source
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§

ScrollAction
Resolved effect of a single mouse-wheel notch.

Functions§

resolve_scroll
Decides what a wheel delta should do given the foreground app’s state.