AnsiGL Wiki
A modern "graphics" API for text-based applications
Status: Pre-Alpha
Brought to you by:
nicrohobak
An 'achar' is simply a standard 'char' paired with a list of ANSI codes. This is absolutely the most basic element of AnsiGL. Even though no other classes are directly based upon achar, all other AnsiGL classes will be affected by changes to this class.
(*Note: While there is no direct inheritance with this class, everything else is essentially based upon this building block.)
Data Type | Name | Details |
---|---|---|
char | Ch | The glyph |
list< ENUM_ANSICodes > | Ansi | The ANSI codes associated with this character |
Name | Details |
---|---|
AddAnsi() | Adds ANSI codes |
AddAnsiFrom() | Adds ANSI from another achar (appends) |
CopyAnsiFrom() | Copies ANSI from another achar (overwrites) |
HasAnsi() | Checks to see if certain ANSI exists in our list |
HasAnsiAny() | Checks to see if any provided ANSI codes are in our list |
HasAnsiAll() | Checks to see that all provided ANSI codes are in our list |
HasSameAnsi() | == |
RemoveAnsi() | Removes ANSI codes |
RemoveAnsiConflicts() | Compresses the ANSI codes by eliminating conflicting codes |
ClearAnsi() | Clears all ANSI codes |
Clear() | Clears all ANSI and sets Ch to a blank char (a space, ' ') |
RenderAnsi() | "Renders" only the ANSI codes the terminal expects |
Render() | "Renders" the character, ANSI and all, to a std::string |