From 20f554748ebbc80406f9a37800559089d3e80e2b Mon Sep 17 00:00:00 2001 From: _ov4 Date: Tue, 1 Sep 2026 12:11:55 +0000 Subject: color --- src/util/color.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/util/color.cc (limited to 'src/util/color.cc') 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 + +#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"; +} + +} -- cgit v1.3.1-4-g156e