|
Simple-Log
alpha-v0.7
|
Collection of possible style and color options for text printed onto the console. More...
#include <ConsoleSink.hpp>
Public Types | |
| enum class | Color { black = 0 , red , green , yellow , blue , magenta , cyan , gray , standard , brightBlack , brightRed , brightGreen , brightYellow , brightBlue , brightMagenta , brightCyan , brightGray } |
| enum class | Style { standard = 0 , bold , dim , italic , underline , reversed = 7 , crossed = 9 } |
Public Attributes | |
| Style | style = Style::standard |
| determines the style More... | |
| Color | textColor = Color::standard |
| determines the text color More... | |
| Color | bgColor = Color::standard |
| determines the background color More... | |
Collection of possible style and color options for text printed onto the console.
Each enum type will be casted to the third-party lib "rang" counterpart, which is responsible for all of the troublesome work. Some style options might not work on every console.
Go to https://github.com/agauniyal/rang/tree/master if you are interested about all the details.
|
strong |
| Enumerator | |
|---|---|
| black | |
| red | |
| green | |
| yellow | |
| blue | |
| magenta | |
| cyan | |
| gray | |
| standard | |
| brightBlack | |
| brightRed | |
| brightGreen | |
| brightYellow | |
| brightBlue | |
| brightMagenta | |
| brightCyan | |
| brightGray | |
|
strong |
| Enumerator | |
|---|---|
| standard | |
| bold | |
| dim | |
| italic | |
| underline | |
| reversed | |
| crossed | |
| Color sl::log::ConsoleTextStyle::bgColor = Color::standard |
determines the background color
| Style sl::log::ConsoleTextStyle::style = Style::standard |
determines the style
| Color sl::log::ConsoleTextStyle::textColor = Color::standard |
determines the text color