class Fancyline::Tty::Vt100
- Fancyline::Tty::Vt100
- Fancyline::Tty
- Reference
- Object
Overview
Implements control codes for VT-100 compatible terminal emulators.
Defined in:
fancyline/tty/vt100.crConstant Summary
-
CLEAR_LINE =
"\e[2K"
-
CURSOR_TO_START =
"\r"
-
PREPARE_LINE =
CURSOR_TO_START + CLEAR_LINE
Constructors
Instance Method Summary
-
#clear_line
Clears the current line, no matter on which column the cursor is
-
#clear_screen
Clears the screen and moves the cursor to the top left
-
#cursor_restore(&)
Saves the cursor position, yields, and restores it afterwards.
-
#cursor_to_start
Moves the cursor to the start of the current line
-
#move_cursor(x, y)
Moves the terminal cursor around relative to its position
-
#prepare_line
Clears the current line and places the cursor at the beginning of it
Instance methods inherited from class Fancyline::Tty
clear_line
clear_line,
clear_screen
clear_screen,
colors? : Bool
colors?,
cursor_restore(&)
cursor_restore,
cursor_to_start
cursor_to_start,
dumb? : Bool
dumb?,
move_cursor(x, y)
move_cursor,
prepare_line
prepare_line
Constructor methods inherited from class Fancyline::Tty
new
new
Class methods inherited from class Fancyline::Tty
build(io)
build
Constructor Detail
Instance Method Detail
Clears the current line, no matter on which column the cursor is
Clears the screen and moves the cursor to the top left
Saves the cursor position, yields, and restores it afterwards.
Moves the cursor to the start of the current line
Moves the terminal cursor around relative to its position
Clears the current line and places the cursor at the beginning of it