-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcolors.h
47 lines (42 loc) · 904 Bytes
/
colors.h
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
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef _COLORS_H
#define _COLORS_H
#define RESET 0
#define BOLD 1
#define FAINT 2
#define ITALIC 3
#define UNDERLINE 4
#define BLINK 5
#define BLINK_RAPID 6
#define INVERSE 7
#define CONCEAL 8
#define STRIKETHROUGH 9
#define FONT(N) 1 << N
#define FRAKTUR 20
#define BOLD_OFF 21
#define FAINT_OFF 22
#define ITALIC_OFF 23
#define UNDERLINE_OFF 24
#define BLINK_OFF 25
#define INVERSE_OFF 27
#define CONCEAL_OFF 28
#define STRIKETHROUGH_OFF 29
#define FOREGROUND(N) str(3) + (N)
#define BACKGROUND(N) str(4) + (N)
#define LIGHT_FOREGROUND(N) str(9) + (N)
#define LIGHT_BACKGROUND(N) str(10) + (N)
#define FRAMED 51
#define ENCIRCLED 52
#define OVERLINED 53
#define FRAMED_OFF 54
#define OVERLINED_OFF 55
#define BLACK 0
#define RED 1
#define GREEN 2
#define YELLOW 3
#define BLUE 4
#define MAGENTA 5
#define CYAN 6
#define WHITE 7
#define DEFAULT 9
#define EFFECT(E) str("\033[") + (E) + "m"
#endif