class

Fancyline::Tty

Inherits Reference / Object

Constructors

Class methods

build(io)

Guesses the correct Tty implementation to use on io.

Source

Instance methods

clear_line

Clears the current line, no matter on which column the cursor is

Source
clear_screen

Clears the screen and moves the cursor to the top left

Source
colors?

Does this terminal support colors?

Source
columns

Terminal columns at program start.

Source
cursor_restore

Saves the cursor position, yields, and restores it afterwards.

Source
cursor_to_start

Moves the cursor to the start of the current line

Source
dumb?

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.

Source
move_cursor(x, y)

Moves the terminal cursor around relative to its position

Source
prepare_line

Clears the current line and places the cursor at the beginning of it

Source
rows

Terminal rows at program start.

Source

Nested types