class RatatuiRuby::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)