This module offers basic control of ANSI compliant terminals.
Turns the autoreset feature on and off. It defaults to on.
print_string attr txt prints the string txt with the
attibutes attr. After printing, the attributes are
automatically reseted to the defaults, unless autoreset is turned
off.
printf attr format arg1 ... argN prints the arguments
arg1,...,argN according to format with the attibutes attr.
After printing, the attributes are automatically reseted to the
defaults, unless autoreset is turned off.
erase Above erases everything before the position of the cursor.
erase Below erases everything after the position of the cursor.
erase Screen erases the whole screen.
set_cursor x y puts the cursor at position (x,y), x
indicating the column (the leftmost one being 1) and y being the
line (the topmost one being 1). If x <= 0, the x coordinate
is unchanged; if y <= 0, the y coordinate is unchanged.
move_cursor x y moves the cursor by x columns (to the right
if x > 0, to the left if x < 0) and by y lines (downwards if
y > 0 and upwards if y < 0).
save_cursor() saves the current position of the cursor.
restore_cursor() replaces the cursor to the position saved
with save_cursor().
scroll n scrolls the terminal by n lines, up (creating new
lines at the bottom) if n > 0 and down if n < 0.
The input signature of the functor Make.
The output signature of the functor Make.