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 and provides methods to save/restore/draw the text cursor directly to the hardware framebuffer via CanvasBuffer. The mouse cursor is a present-time overlay in writer.rs; only its state lives here.

Re-exportsยง

use crate::framebuffer::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).