class RatatuiRuby::Widgets::Cursor

Controls the terminal cursor position.

Interfaces are not just output; they require input. Users need a visual cue—a blinking block or line—to know where their keystrokes will appear.

This widget renders a ghost. It does not draw a character but instructs the terminal to place the hardware cursor at specific coordinates.

Use it for text editors, input fields, or command prompts.

Examples

Cursor.new(x: 10, y: 5)

See also: