aboutsummaryrefslogtreecommitdiff
path: root/include/util/color.h
blob: 9e9ed27d019934e92998e8110bda5aa4a64af693 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

#pragma once

#include <string>

namespace ov4
{
    
std::string make_color(const std::string s, const std::string_view color);

}

namespace ov4::color
{

inline constexpr std::string_view
    black   = "30",
    red     = "31",
    green   = "32",
    yellow  = "33",
    blue    = "34",
    purple  = "35",
    cyan    = "36",
    white   = "37";

inline constexpr std::string_view
    bright_black    = "90",
    bright_red      = "91",
    bright_green    = "92",
    bright_yellow   = "93",
    bright_blue     = "94",
    bright_purple   = "95",
    bright_cyan     = "96",
    bright_white    = "97";

}