Module tty

Source
Expand description

Most of the code in for the terminal_size() function taken from: https://github.com/eminence/terminal-size

A simple utility for getting the size of a terminal, and moving n lines up.

Supports both Linux and Windows, but help is needed to test other platforms

Structs§

Height
Width

Functions§

move_cursor_up
Return string that move the cursor n lines up.
terminal_size
Returns the size of the terminal, if available.