class Terminimal::Cursor
- Terminimal::Cursor
- Reference
- Object
Defined in:
terminimal/cursor.crConstructors
Instance Method Summary
-
#hidden? : Bool
Get the last known cursor visibility.
-
#hide
Hides the cursor until instructed to re-display it with
#show
or the application exits. -
#hide!
Hides the current cursor position.
-
#move(direction, cells = 1)
Move the cursor position cells spots in direction.
-
#move_to(line : Int, column : Int)
Position the cursor at the specific line/column position.
-
#move_to(column : Int)
Position the cursor at the specific column on the current line.
-
#restore_position
Restores the previously save cursor position.
-
#save_position
Saves the current cursor position for later recall via
#restore_position
. -
#show
Show the cursor.
Constructor Detail
Instance Method Detail
def 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.