-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcolor16
165 lines (138 loc) · 3.31 KB
/
color16
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
#!/bin/bash
#
# ANSI Color code (16colors)
#
# http://ascii-table.com/ansi-escape-sequences.php
# http://archive.linux.or.jp/JF/JFdocs/Bash-Prompt-HOWTO-5.html
# Escape sequence
# \033[<code>m or \e[<code>m
#
# color : \[\033[ <code>m\] \]
#
# e.g.
# bg=Blue, Bold, fg=Red
# 1. \033[44;1;31m
# 2. \033[44m\033[1;31m
# Text attributes
# 0 All attributes off
# 1 Bold on
# 4 Underscore (on monochrome display adapter only)
# 5 Blink on
# 7 Reverse video on
# 8 Concealed on
# Foreground colors
# 0;30 Black 1;30 Dark Gray
# 0;34 Blue 1;34 Light Blue
# 0;32 Green 1;32 Light Green
# 0;36 Cyan 1;36 Light Cyan
# 0;31 Red 1;31 Light Red
# 0;35 Purple 1;35 Light Purple
# 0;33 Brown 1;33 Yellow
# 0;37 Light Gray 1;37 White
# Background colors
# 40 Black
# 41 Red
# 42 Green
# 43 Yellow
# 44 Blue
# 45 Magenta
# 46 Cyan
# 47 White
###############################################################################
echo " On White(47) On Black(40) On Default Color Code"
echo -e "\
\033[47m\033[1;37m White \033[0m \
\033[40m\033[1;37m White \033[0m \
\033[1;37m White \033[0m\
1;37\
"
echo -e "\
\033[47m\033[37m Light Gray \033[0m \
\033[40m\033[37m Light Gray \033[0m \
\033[37m Light Gray \033[0m \
37\
"
echo -e "\
\033[47m\033[1;30m Gray \033[0m \
\033[40m\033[1;30m Gray \033[0m \
\033[1;30m Gray \033[0m \
1;30\
"
echo -e "\
\033[47m\033[30m Black \033[0m \
\033[40m\033[30m Black \033[0m \
\033[30m Black \033[0m \
30\
"
echo -e "\
\033[47m\033[31m Red \033[0m \
\033[40m\033[31m Red \033[0m \
\033[31m Red \033[0m \
31\
"
echo -e "\
\033[47m\033[1;31m Light Red \033[0m \
\033[40m\033[1;31m Light Red \033[0m \
\033[1;31m Light Red \033[0m \
1;31\
"
echo -e "\
\033[47m\033[32m Green \033[0m \
\033[40m\033[32m Green \033[0m \
\033[32m Green \033[0m \
32\
"
echo -e "\
\033[47m\033[1;32m Light Green \033[0m \
\033[40m\033[1;32m Light Green \033[0m \
\033[1;32m Light Green \033[0m \
1;32\
"
echo -e "\
\033[47m\033[33m Brown \033[0m \
\033[40m\033[33m Brown \033[0m \
\033[33m Brown \033[0m \
33\
"
echo -e "\
\033[47m\033[1;33m Yellow \033[0m \
\033[40m\033[1;33m Yellow \033[0m \
\033[1;33m Yellow \033[0m \
1;33\
"
echo -e "\
\033[47m\033[34m Blue \033[0m \
\033[40m\033[34m Blue \033[0m \
\033[34m Blue \033[0m \
34\
"
echo -e "\
\033[47m\033[1;34m Light Blue \033[0m \
\033[40m\033[1;34m Light Blue \033[0m \
\033[1;34m Light Blue \033[0m \
1;34\
"
echo -e "\
\033[47m\033[35m Purple \033[0m \
\033[40m\033[35m Purple \033[0m \
\033[35m Purple \033[0m \
35\
"
echo -e "\
\033[47m\033[1;35m Pink \033[0m \
\033[40m\033[1;35m Pink \033[0m \
\033[1;35m Pink \033[0m \
1;35\
"
echo -e "\
\033[47m\033[36m Cyan \033[0m \
\033[40m\033[36m Cyan \033[0m \
\033[36m Cyan \033[0m \
36\
"
echo -e "\
\033[47m\033[1;36m Light Cyan \033[0m \
\033[40m\033[1;36m Light Cyan \033[0m \
\033[1;36m Light Cyan \033[0m \
1;36\
"