class

Term2::Components::Cursor

Inherits Term2::Model < Reference < Object

Constructors

Class methods

Instance methods

blur

Blur blurs the cursor.

Source
char

char is the character under the cursor

Source
char=(char : String)

char is the character under the cursor

Source
focus

Focus focuses the cursor to allow it to blink if desired.

Source
focus=(focus : Bool)

focus indicates whether the containing input is focused

Source
focus?

focus indicates whether the containing input is focused

Source
focus_cmd
Source
id

The ID of this Model as it relates to other cursors (usually 0 unless multiple cursors managed)

Source
id=(id : Int32)

The ID of this Model as it relates to other cursors (usually 0 unless multiple cursors managed)

Source
init

Init is the first function that will be called. It returns an optional initial command. To not perform an initial command return nil.

Source
mode

mode determines the behavior of the cursor

Source
mode=(mode : Mode)

mode determines the behavior of the cursor

Source
set_char(char : String)

SetChar sets the character under the cursor.

Source
set_mode(mode : Mode) : Cmd

SetMode sets the model's cursor mode. This method returns a command.

Source
style
Source
style=(style : Style)
Source
text_style
Source
text_style=(text_style : Style)
Source
update(msg : Msg) : Tuple(Cursor, Cmd)

Update updates the cursor.

Source
view

View displays the cursor.

Source

Nested types