ParamKit
A small library helping to parse commandline parameters (for Windows).
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
term_colors.h
Go to the documentation of this file.
1 
6 #pragma once
7 
8 #include <iostream>
9 #include <windows.h>
10 
11 #define BLACK 0
12 #define DARK_BLUE 1
13 #define DARK_GREEN 2
14 #define DARK_CYAN 3
15 #define DARK_RED 4
16 #define DARK_MAGENTA 5
17 #define BROWN 6
18 #define SILVER 7
19 #define GRAY 8
20 #define BLUE 9
21 #define LIME 0xA
22 #define CYAN 0xB
23 #define RED 0xC
24 #define MAGENTA 0xD
25 #define YELLOW 0xE
26 #define WHITE 0xF
27 
28 #define MAKE_COLOR(fg_color, bg_color) (fg_color | (bg_color << 4))
29 #define GET_BG_COLOR(color) (color >> 4)
30 
31 #define YELLOW_ON_BLACK MAKE_COLOR(YELLOW, BLACK)
32 #define RED_ON_BLACK MAKE_COLOR(RED, BLACK)
33