ITHACA-FV
2026.04
Loading...
Searching...
No Matches
src
ITHACA_CORE
ITHACAutilities
colormod.H
Go to the documentation of this file.
1
#include <ostream>
2
5
6
#ifndef colormod_H
7
#define colormod_H
8
9
namespace
Color
10
{
11
enum
Code
12
{
13
FG_RED = 31,
14
FG_GREEN = 32,
15
FG_BLUE = 34,
16
FG_DEFAULT = 39,
17
BG_RED = 41,
18
BG_GREEN = 42,
19
BG_BLUE = 44,
20
BG_DEFAULT = 49
21
};
23
class
Modifier
24
{
25
Code code;
26
public
:
27
Modifier(Code pCode) : code(pCode) {}
28
29
Code getCode()
const
{
return
code; }
30
31
friend
std::ostream&
32
operator<<(std::ostream& os,
const
Modifier& mod)
33
{
34
return
os <<
"\033["
<< mod.code <<
"m"
;
35
}
36
};
37
}
38
39
#endif
Generated by
1.16.1