Implementation for dumb terminals. Mostly empty implementations.
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
Sourcedumb?
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.
Sourcemove_cursor(x, y)
Moves the terminal cursor around relative to its position
Sourcerows
Terminal rows at program start.
Source