-
Notifications
You must be signed in to change notification settings - Fork 0
/
term-color-test.sh
executable file
·51 lines (44 loc) · 1.43 KB
/
term-color-test.sh
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
#!/bin/bash
NORM="\033[0m";
BOLD="\033[1m";
UNDR="\033[4m";
BLINK="\033[5m";
INVT="\033[7m";
BLACK_F="\033[30m"; BLACK_B="\033[40m"
RED_F="\033[31m"; RED_B="\033[41m"
GREEN_F="\033[32m"; GREEN_B="\033[42m"
YELLOW_F="\033[33m"; YELLOW_B="\033[43m"
BLUE_F="\033[34m"; BLUE_B="\033[44m"
MAGENTA_F="\033[35m"; MAGENTA_B="\033[45m"
CYAN_F="\033[36m"; CYAN_B="\033[46m"
WHITE_F="\033[37m"; WHITE_B="\033[47m"
B_BLACK_F="\033[90m"; B_BLACK_B="\033[100m"
B_RED_F="\033[91m"; B_RED_B="\033[101m"
B_GREEN_F="\033[92m"; B_GREEN_B="\033[102m"
B_YELLOW_F="\033[93m"; B_YELLOW_B="\033[103m"
B_BLUE_F="\033[94m"; B_BLUE_B="\033[104m"
B_MAGENTA_F="\033[95m"; B_MAGENTA_B="\033[105m"
B_CYAN_F="\033[96m"; B_CYAN_B="\033[106m"
B_WHITE_F="\033[97m"; B_WHITE_B="\033[107m"
show () {
echo -e "$1"
}
TEXT="The quick brown fox jumps over the lazy dog."
show "0 ${BOLD}${WHITE_F}${TEXT}${NORM}"
show "1 ${WHITE_F}${TEXT}${NORM}"
show "2 ${BOLD}$CYAN_F${TEXT}${NORM}"
show "3 ${BOLD}$BLUE_F${TEXT}${NORM}"
show "4 ${BOLD}$YELLOW_F${TEXT}${NORM}"
show "5 ${BOLD}$GREEN_F${TEXT}${NORM}"
show "6 $BLACK_F${TEXT}${NORM}"
show "7 ${BOLD}$BLACK_F${TEXT}${NORM}"
echo ""
show "0 ${BOLD}$MAGENTA_F${TEXT}${NORM}"
show "1 $BLUE_F${TEXT}${NORM}"
show "2 $CYAN_F${TEXT}${NORM}"
show "3 $GREEN_F${TEXT}${NORM}"
show "4 $YELLOW_F${TEXT}${NORM}"
show "5 ${BOLD}$RED_F${TEXT}${NORM}"
show "6 $RED_F${TEXT}${NORM}"
show "7 $MAGENTA_F${TEXT}${NORM}"
show "0 ${BOLD}$MAGENTA_F${TEXT}${NORM}"