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