ANSI Builder
ANSI builder is a library that allows you to build and execute ansi control sequences. This repository is currently a work in progress and might have frequent changes to design (will try to keep design changes to a minimum).
Example
More details on using the library can be found in the examples/
directory.
Also https://github.com/ParagonPawns/term-inquiry is on of our projects that
use this.
Change color example
use AnsiBuilder;
new
.color.fg.red
.text
.print // prints out what we currently have to the terminal.
.reset_attributes
.text
Cursor example
use AnsiBuilder;
new
.cursor.save // saves current cursor positon
.text
.println
.text
.println
.cursor.restore // brings cursor where we saved
.erase_display
.print;