linc 0.7
Linc is a general-purpose programming language inspired by C
|
Color utility static class. More...
#include <Colors.hpp>
Public Types | |
enum class | Color : char { Default , Black , Red , Green , Yellow , Blue , Purple , Cyan , White } |
Enum representing basic ANSI foreground colors. | |
Static Public Member Functions | |
static std::string | push (Color color) |
Push the specified color onto the stack. | |
static std::string | pop () |
Pop the top of the color-stack. | |
static std::string | toANSI (Color color) |
Convert an enumerator to its corresponding ANSI color-sequence, such that following text is of the specified color (until re-specified). | |
static Color | getCurrentColor () |
Get the color at the top of the stack. If the stack is empty, return the default color. | |
Color utility static class.
|
inlinestaticnodiscard |
Get the color at the top of the stack. If the stack is empty, return the default color.
|
static |
Pop the top of the color-stack.
|
static |
Push the specified color onto the stack.
color | Color to push. |
|
staticnodiscard |
Convert an enumerator to its corresponding ANSI color-sequence, such that following text is of the specified color (until re-specified).
color | The enumerator corresponding to the selected color. |