Scoping out

This commit is contained in:
2024-07-01 19:54:36 -04:00
parent 35eac04a2c
commit 5350053cff
2 changed files with 16 additions and 3 deletions

View File

@@ -11,6 +11,11 @@
// This means black can be shown as purple if configured that way.
namespace mcolor::ansiColorCodes
{
struct ansiColor
{
std::string code;
};
inline static const std::string FG_BLACK = "\033[30m";
inline static const std::string FG_RED = "\033[31m";
inline static const std::string FG_GREEN = "\033[32m";
@@ -79,7 +84,12 @@ namespace mcolor::rgbColors
namespace mcolor
{
struct Color
{
union
{
mcolor::ansiColorCodes::ansiColor ansi;
mcolor::rgbColors::rgbColor rgb;
};
};
}