Implements control codes for VT-100 compatible terminal emulators.
Constants
PREPARE_LINE = CURSOR_TO_START + CLEAR_LINE
Instance methods
clear_line
Clears the current line, no matter on which column the cursor is
Sourceclear_screen
Clears the screen and moves the cursor to the top left
Sourcecolumns
Terminal columns at program start.
Sourcecursor_restore
Saves the cursor position, yields, and restores it afterwards.
Sourcecursor_to_start
Moves the cursor to the start of the current line
Sourcemove_cursor(x, y)
Moves the terminal cursor around relative to its position
Sourceprepare_line
Clears the current line and places the cursor at the beginning of it
Sourcerows
Terminal rows at program start.
Sourcewinsize
Currently always returns nil when not compiled with x86_64 and darwin flags
Source