class Terminimal::Cursor

Defined in:

terminimal/cursor.cr

Constructors

Instance Method Summary

Constructor Detail

def self.instance : self #

[View source]

Instance Method Detail

def hidden? : Bool #

Get the last known cursor visibility.


[View source]
def hide #

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


[View source]
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.


[View source]
def move(direction, cells = 1) #

Move the cursor position cells spots in direction.


[View source]
def move_to(line : Int, column : Int) #

Position the cursor at the specific line/column position.


[View source]
def move_to(column : Int) #

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


[View source]
def restore_position #

Restores the previously save cursor position.


[View source]
def save_position #

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


[View source]
def show #

Show the cursor.


[View source]