Bubbles::Cursor::Model
Model is the Bubble Tea model for this cursor element.
Constructors
Instance methods
blink_speed
BlinkSpeed is the speed at which the cursor blinks. This has no effect unless [CursorMode] is not set to [CursorBlink].
blink_speed=(blink_speed : Time::Span)
BlinkSpeed is the speed at which the cursor blinks. This has no effect unless [CursorMode] is not set to [CursorBlink].
blinked=(blinked : Bool)
blinked? is the state of the cursor blink. When true, the cursor is hidden.
SetMode sets the model's cursor mode. This method returns a command.
For available cursor modes, see type CursorMode.
text_style
TextStyle is the style used for the cursor when it is blinking (hidden), i.e. displaying normal text.
text_style=(text_style : Lipgloss::Style)
TextStyle is the style used for the cursor when it is blinking (hidden), i.e. displaying normal text.