diff options
| author | _ov4 <ov4@ov4.org> | 2026-09-01 12:11:55 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-09-01 12:11:55 +0000 |
| commit | 20f554748ebbc80406f9a37800559089d3e80e2b (patch) | |
| tree | 1a39878a8aa4721970a02bc5691d6ea2e898cb25 /include | |
| parent | 66e23046f3e6766064ed570d6a6a1fa53a0b9d32 (diff) | |
color
Diffstat (limited to 'include')
| -rw-r--r-- | include/all.h | 1 | ||||
| -rw-r--r-- | include/util/color.h | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/include/all.h b/include/all.h index 5141e37..67759cc 100644 --- a/include/all.h +++ b/include/all.h @@ -4,6 +4,7 @@ #include "util/io.h" #include "util/prompt.h" #include "util/string.h" +#include "util/color.h" #include "eval.h" #include "global.h" #include "ground.h" diff --git a/include/util/color.h b/include/util/color.h new file mode 100644 index 0000000..01711d6 --- /dev/null +++ b/include/util/color.h @@ -0,0 +1,35 @@ +#pragma once + +#include <string> + +namespace ov4 +{ + +std::string make_color(const std::string s, const std::string color); + +} + +namespace ov4::color +{ + +const std::string + black = "30", + red = "31", + green = "32", + yellow = "33", + blue = "34", + purple = "35", + cyan = "36", + white = "37"; + +const std::string + bright_black = "90", + bright_red = "91", + bright_green = "92", + bright_yellow = "93", + bright_blue = "94", + bright_purple = "95", + bright_cyan = "96", + bright_white = "97"; + +} |
