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 /src/util/color.cc | |
| parent | 66e23046f3e6766064ed570d6a6a1fa53a0b9d32 (diff) | |
color
Diffstat (limited to 'src/util/color.cc')
| -rw-r--r-- | src/util/color.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/util/color.cc b/src/util/color.cc new file mode 100644 index 0000000..87fd346 --- /dev/null +++ b/src/util/color.cc @@ -0,0 +1,17 @@ +#include "util/color.h" + +#include <string> + +#include "all.h" + +using namespace std; + +namespace ov4 +{ + +string make_color(const string s, const string color) +{ + return "\e[0;" + color + "m" + s + "\e[0m"; +} + +} |
