···11+#ifndef TERMCOLOR_H
22+#define TERMCOLOR_H
33+44+namespace termcolor
55+{
66+77+const int RESET = 0;
88+const int BRIGHT = 1;
99+const int DIM = 2;
1010+const int UNDERLINE = 3;
1111+const int BLINK = 4;
1212+const int REVERSE = 7;
1313+const int HIDDEN = 8;
1414+1515+const int BLACK = 0;
1616+const int RED = 1;
1717+const int GREEN = 2;
1818+const int YELLOW = 3;
1919+const int BLUE = 4;
2020+const int MAGENTA = 5;
2121+const int CYAN = 6;
2222+const int WHITE = 7;
2323+2424+void set(int text, int bg = BLACK, int attrib = RESET);
2525+inline void setBright(int text, int bg = BLACK) { set(text, bg, BRIGHT); }
2626+inline void reset() { set(WHITE); }
2727+2828+}
2929+3030+#endif
3131+