Module: ANSI::Cursor

Defined in:
lib/ansi/cursor.rb

Overview

Defines ANSI escape codes relating to cursor movement:

move_to    - accepts an X and Y screen location; X is the column and Y is the row.
move       - accepts a key (A, B, C, D) and an amount which defaults to 1.
move_up    - accepts an amount, which defaults to 1.
move_down  - accepts an amount, which defaults to 1.
move_right - accepts an amount, which defaults to 1.
move_left  - accepts an amount, which defaults to 1.

save_cursor_position    - saves the current cursor position.
restore_cursor_position - restores the cursor position.