-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathansi_colors_unix.go
More file actions
35 lines (30 loc) · 908 Bytes
/
Copy pathansi_colors_unix.go
File metadata and controls
35 lines (30 loc) · 908 Bytes
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
//go:build !windows
package main
const (
BLACK string = "\x1b[30m"
RED string = "\x1b[31m"
GREEN string = "\x1b[32m"
YELLOW string = "\x1b[33m"
BLUE string = "\x1b[34m"
MAGENTA string = "\x1b[35m"
CYAN string = "\x1b[36m"
WHITE string = "\x1b[37m"
RED_BOLD string = "\x1b[1;31m"
GREEN_BOLD string = "\x1b[1;32m"
YELLOW_BOLD string = "\x1b[1;33m"
BLUE_BOLD string = "\x1b[1;34m"
MAGENTA_BOLD string = "\x1b[1;35m"
CYAN_BOLD string = "\x1b[1;36m"
WHITE_BOLD string = "\x1b[1;37m"
RED_BG string = "\x1b[41m"
GREEN_BG string = "\x1b[42m"
YELLOW_BG string = "\x1b[43m"
BLUE_BG string = "\x1b[44m"
MAGENTA_BG string = "\x1b[45m"
CYAN_BG string = "\x1b[46m"
WHITE_BG string = "\x1b[47m"
DEFAULT_BG string = "\x1b[49m"
// 8bit 256 color 48;5 => background
LIGHT_GRAY_BG string = "\x1b[48;5;242m"
DARK_GRAY_BG string = "\x1b[48;5;236m"
)