aboutsummaryrefslogtreecommitdiff
path: root/src/util/color.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/color.cc')
-rw-r--r--src/util/color.cc17
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";
+}
+
+}