Skip to main content

Module cursor

Module cursor 

Source
Expand description

Cursor manager for the framebuffer terminal.

Owns the mouse-cursor and text-cursor state (position, visibility, saved pixels) and provides methods to save/restore/draw them directly to the hardware framebuffer via CanvasBuffer.

Structsยง

CursorManager ๐Ÿ”’
Holds all cursor-related state for the framebuffer terminal.

Constantsยง

CURSOR_H ๐Ÿ”’
Mouse-cursor sprite height (pixels).
CURSOR_PIXELS ๐Ÿ”’
Mouse cursor sprite: 0=transparent, 1=black outline, 2=white fill.
CURSOR_W ๐Ÿ”’
Mouse-cursor sprite width (pixels).
TEXT_CURSOR_MAX_DIM ๐Ÿ”’
Maximum text-cursor width or height (pixels).