class Fancyline::Tty::Dumb

Overview

Implementation for dumb terminals. Mostly empty implementations.

Defined in:

fancyline/tty/dumb.cr

Instance Method Summary

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

def clear_line #
Description copied from class Fancyline::Tty

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


[View source]
def clear_screen #
Description copied from class Fancyline::Tty

Clears the screen and moves the cursor to the top left


[View source]
def cursor_restore(&) #
Description copied from class Fancyline::Tty

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


[View source]
def cursor_to_start #
Description copied from class Fancyline::Tty

Moves the cursor to the start of the current line


[View source]
def dumb? : Bool #
Description copied from class Fancyline::Tty

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.


[View source]
def move_cursor(x, y) #
Description copied from class Fancyline::Tty

Moves the terminal cursor around relative to its position


[View source]