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:
Attributes
X coordinate (column).
Y coordinate (row).
Public Class Methods
Source
# File lib/ratatui_ruby/widgets/cursor.rb, line 49 def initialize(x:, y:) super(x: Integer(x), y: Integer(y)) end