class Fancyline::Tty::Dumb
- Fancyline::Tty::Dumb
- Fancyline::Tty
- Reference
- Object
Overview
Implementation for dumb terminals. Mostly empty implementations.
Defined in:
fancyline/tty/dumb.crInstance 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
-
#dumb? : Bool
Is this a dumb terminal? A dumb terminal doesn't offer any capabilities and acts more like a stream of bytes being thrown on the screen.
-
#move_cursor(x, y)
Moves the terminal cursor around relative to its position
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
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
Is this a dumb terminal? A dumb terminal doesn't offer any capabilities
and acts more like a stream of bytes being thrown on the screen. The case
for example the program is used through popen(3)
like functionality.
Moves the terminal cursor around relative to its position