Term2::Components::Cursor
Inherits Term2::Model < Reference < Object
Constructors
new
SourceClass methods
Instance methods
blink
Cursor Blink state (true = visible/hidden depending on logic, effectively "on" cycle) In Go: Blink bool. In Crystal we use this for visibility toggle.
blink=(blink : Bool)
Cursor Blink state (true = visible/hidden depending on logic, effectively "on" cycle) In Go: Blink bool. In Crystal we use this for visibility toggle.
blink?
Sourceblink_speed
Sourceblink_speed=(blink_speed : Time::Span)
Sourcefocus_cmd
Sourceid
The ID of this Model as it relates to other cursors (usually 0 unless multiple cursors managed)
id=(id : Int32)
The ID of this Model as it relates to other cursors (usually 0 unless multiple cursors managed)
init
Init is the first function that will be called. It returns an optional initial command. To not perform an initial command return nil.
set_mode(mode : Mode) : Cmd
SetMode sets the model's cursor mode. This method returns a command.
style
Sourcestyle=(style : Style)
Sourcetext_style
Sourcetext_style=(text_style : Style)
Source