forked from ECSTeam/cloudfoundry-top-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
color.go
62 lines (50 loc) · 1.4 KB
/
color.go
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package util
const (
CLEAR = "\033[0m"
BLACK = "\033[30"
RED = "\033[31"
GREEN = "\033[32"
YELLOW = "\033[33"
BLUE = "\033[34"
PURPLE = "\033[35"
CYAN = "\033[36"
WHITE = "\033[37"
BRIGHT = ";1m"
DIM = ";2m"
UNDERLINE = ";4m"
//FLASH = ";5m"
REVERSE = ";7m"
WHITE_TEXT_SOFT_BG = "\x1b[48;5;235m\x1b[37m"
BRIGHT_BLACK = BLACK + BRIGHT
DIM_BLACK = BLACK + DIM
UNDERLINE_BLACK = BLACK + UNDERLINE
REVERSE_BLACK = BLACK + REVERSE
BRIGHT_RED = RED + BRIGHT
DIM_RED = RED + DIM
UNDERLINE_RED = RED + UNDERLINE
REVERSE_RED = RED + REVERSE
BRIGHT_GREEN = GREEN + BRIGHT
DIM_GREEN = GREEN + DIM
UNDERLINE_GREEN = GREEN + UNDERLINE
REVERSE_GREEN = GREEN + REVERSE
BRIGHT_YELLOW = YELLOW + BRIGHT
DIM_YELLOW = YELLOW + DIM
UNDERLINE_YELLOW = YELLOW + UNDERLINE
REVERSE_YELLOW = YELLOW + REVERSE
BRIGHT_BLUE = BLUE + BRIGHT
DIM_BLUE = BLUE + DIM
UNDERLINE_BLUE = BLUE + UNDERLINE
REVERSE_BLUE = BLUE + REVERSE
BRIGHT_PURPLE = PURPLE + BRIGHT
DIM_PURPLE = PURPLE + DIM
UNDERLINE_PURPLE = PURPLE + UNDERLINE
REVERSE_PURPLE = PURPLE + REVERSE
BRIGHT_WHITE = WHITE + BRIGHT
DIM_WHITE = WHITE + DIM
UNDERLINE_WHITE = WHITE + UNDERLINE
REVERSE_WHITE = WHITE + REVERSE
BRIGHT_CYAN = CYAN + BRIGHT
DIM_CYAN = CYAN + DIM
UNDERLINE_CYAN = CYAN + UNDERLINE
REVERSE_CYAN = CYAN + REVERSE
)