abstract class Fancyline::Tty
- Fancyline::Tty
- Reference
- Object
Direct Known Subclasses
Defined in:
fancyline/tty.crfancyline/tty/dumb.cr
fancyline/tty/vt100.cr
Constructors
Class Method Summary
-
.build(io)
Guesses the correct
Tty
implementation to use on io.
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
-
#colors? : Bool
Does this terminal support colors?
-
#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
-
#prepare_line
Clears the current line and places the cursor at the beginning of it
Constructor Detail
Class Method Detail
Instance Method Detail
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.