Instance methods
backward(n : Int32 | Nil = nil)
Move the cursor backward by n
Sourceclear_char(n : Int32 | Nil = nil)
Erase n characters from the current cursor position
Sourceclear_line
Erase the entire current line and return to beginning of the line
Sourceclear_line_after
Erase from the current position (inclusive) to
the end of the line
Sourceclear_line_before
Erase from the beginning of the line up to and including
the current cursor position.
Sourceclear_lines(n, direction = :up)
Sourceclear_rows(n, direction = :up)
Sourceclear_screen
Clear the screen with the background colour and moves the cursor to home
Sourceclear_screen_down
Clear screen down from current position
Sourceclear_screen_up
Clear screen up from current position
Sourcecolumn(n : Int32 | Nil = nil)
Cursor moves to nth position horizontally in the current line
Sourcecurrent
Query cursor current position
Sourcecursor_backward(n)
Move the cursor backward by n
Sourcecursor_down(n)
Move the cursor down by n
Sourcecursor_forward(n)
Move the cursor forward by n
Sourcedown(n : Int32 | Nil = nil)
Move the cursor down by n
Sourceforward(n : Int32 | Nil = nil)
Move the cursor forward by n
Sourceinvisible(stream = STDOUT, &)
Switch off cursor for the block
Sourcemove(x, y)
Move cursor relative to its current position
Sourcemove_to(row : Int32 | Nil = nil, column : Int32 | Nil = nil)
Set the cursor absolute position
Sourcenext_line
Move cursor down to beginning of next line
Sourceprev_line
Move cursor up to beginning of previous line
Sourcerow(n : Int32 | Nil = nil)
Cursor moves to the nth position vertically in the current column
Sourceup(n : Int32 | Nil = nil)
Source