module Lime::Modules::Cursor
Overview
The cursor of the console.
Extended Modules
Defined in:
lime/modules.crInstance Method Summary
-
#move_down(cells = 1)
Moves the cursor down by cells.
-
#move_left(cells = 1)
Moves the cursor left by cells.
-
#move_right(cells = 1)
Moves the cursor right by cells.
-
#move_up(cells = 1)
Moves the cursor up by cells.
-
#position=(position : Tuple(Int32, Int32))
Sets the position of the cursor to position.
-
#visible=(visible : Bool)
Shows or hides the cursor.
Instance Method Detail
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