aboutsummaryrefslogtreecommitdiff
path: root/src/util/color.cc
blob: 2721f388679cc62cf6cb7849aba04469b4b1bc4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

#include "util/color.h"

#include <string>

#include "all.h"

using namespace std;

namespace ov4
{

string make_color(const string s, const string_view color)
{
    return "\e[0;" + (string)color + "m" + s + "\e[0m";
}
    
}