class

Terminimal::Cursor

Inherits Reference / Object

Constructors

instance
Source

Instance methods

hidden?

Get the last known cursor visibility.

Source
hide

Hides the cursor until instructed to re-display it with #show or the application exits.

Source
hide!

Hides the current cursor position.

Using the method directly is not recommended, however if you do, it is important to ensure you call #show prior to exiting.

Source
move(direction, cells = 1)

Move the cursor position cells spots in direction.

Source
move_to(line : Int, column : Int)

Position the cursor at the specific line/column position.

Source
move_to(column : Int)

Position the cursor at the specific column on the current line.

Source
restore_position

Restores the previously save cursor position.

Source
save_position

Saves the current cursor position for later recall via #restore_position.

Source
show

Show the cursor.

Source