#include <tools/Console.hpp>
|
enum | Colors : char {
Colors::BLACK,
Colors::BLUE,
Colors::GREEN,
Colors::CYAN,
Colors::RED,
Colors::MAGENTA,
Colors::BROWN,
Colors::GREY,
Colors::DARKGREY,
Colors::LIGHTBLUE,
Colors::LIGHTGREEN,
Colors::LIGHTCYAN,
Colors::LIGHTRED,
Colors::LIGHTMAGENTA,
Colors::YELLOW,
Colors::WHITE
} |
|
Enumerator |
---|
BLACK |
|
BLUE |
|
GREEN |
|
CYAN |
|
RED |
|
MAGENTA |
|
BROWN |
|
GREY |
|
DARKGREY |
|
LIGHTBLUE |
|
LIGHTGREEN |
|
LIGHTCYAN |
|
LIGHTRED |
|
LIGHTMAGENTA |
|
YELLOW |
|
WHITE |
|
static std::string openfluid::tools::Console::getANSIColorCode |
( |
const Colors & |
Color | ) |
|
|
inlinestatic |
Returns corresponding ANSI code for given color
- Parameters
-
- Returns
- the color code as string
static void openfluid::tools::Console::resetAttributes |
( |
| ) |
|
|
inlinestatic |
Resets font attributes (color and weight)
static int openfluid::tools::Console::saveAttributes |
( |
| ) |
|
|
inlinestatic |
Saves font attributes (color and weight)
- Returns
- the color code (-1 on non-Windows systems)
static void openfluid::tools::Console::setColor |
( |
Colors |
Color | ) |
|
|
inlinestatic |
Sets the given color for console text
- Parameters
-
static void openfluid::tools::Console::setErrorColor |
( |
| ) |
|
|
inlinestatic |
Sets the predefined error color for console text
static void openfluid::tools::Console::setOKColor |
( |
| ) |
|
|
inlinestatic |
Sets the predefined OK color for console text
static void openfluid::tools::Console::setWarningColor |
( |
| ) |
|
|
inlinestatic |
Sets the predefined warning color for console text
The documentation for this class was generated from the following file: