module Lime::Modules::Cursor

Overview

The cursor of the console.

Extended Modules

Defined in:

lime/modules.cr

Instance Method Summary

Instance Method Detail

def move_down(cells = 1) #

Moves the cursor down by cells.


[View source]
def move_left(cells = 1) #

Moves the cursor left by cells.


[View source]
def move_right(cells = 1) #

Moves the cursor right by cells.


[View source]
def move_up(cells = 1) #

Moves the cursor up by cells.


[View source]
def position=(position : Tuple(Int32, Int32)) #

Sets the position of the cursor to position.

Cursor.position = {5, 5}

# The cursor is now at position 5, 5

[View source]
def visible=(visible : Bool) #

Shows or hides the cursor.


[View source]