|
#!/bin/bash |
|
# constants project: https://gist.github.com/717f75e6b87606940017adf385274044.git |
|
# creator: Kamontat Chantrachirathumrong |
|
|
|
# Reset |
|
RESET='\033[0m' # Text Reset |
|
|
|
# Special Colors |
|
C='\033[0;2m' # Default color setting |
|
CB='\033[0;1m' # Default color setting and bright a little bit |
|
|
|
# Regular Colors |
|
BLACK='\033[0;30m' # Black |
|
RED='\033[0;31m' # Red |
|
GREEN='\033[0;32m' # Green |
|
YELLOW='\033[0;33m' # Yellow |
|
BLUE='\033[0;34m' # Blue |
|
PINK='\033[0;35m' # Pink |
|
CYAN='\033[0;36m' # Cyan |
|
WHITE='\033[0;37m' # White |
|
|
|
# Bold |
|
B_BLACK='\033[1;30m' # Black |
|
B_RED='\033[1;31m' # Red |
|
B_GREEN='\033[1;32m' # Green |
|
B_YELLOW='\033[1;33m' # Yellow |
|
B_BLUE='\033[1;34m' # Blue |
|
B_PINK='\033[1;35m' # Pink |
|
B_CYAN='\033[1;36m' # Cyan |
|
B_WHITE='\033[1;37m' # White |
|
|
|
# Underline |
|
U_BLACK='\033[4;30m' # Black |
|
U_RED='\033[4;31m' # Red |
|
U_GREEN='\033[4;32m' # Green |
|
U_YELLOW='\033[4;33m' # Yellow |
|
U_BLUE='\033[4;34m' # Blue |
|
U_PINK='\033[4;35m' # Pink |
|
U_CYAN='\033[4;36m' # Cyan |
|
U_WHITE='\033[4;37m' # White |
|
|
|
# Background |
|
BG_BLACK='\033[40m' # Black |
|
BG_RED='\033[41m' # Red |
|
BG_GREEN='\033[42m' # Green |
|
BG_YELLOW='\033[43m' # Yellow |
|
BG_BLUE='\033[44m' # Blue |
|
BG_PINK='\033[45m' # Pink |
|
BG_CYAN='\033[46m' # Cyan |
|
BG_WHITE='\033[47m' # White |
|
|
|
# High Intensity |
|
HI_BLACK='\033[0;90m' # Black |
|
HI_RED='\033[0;91m' # Red |
|
HI_GREEN='\033[0;92m' # Green |
|
HI_YELLOW='\033[0;93m' # Yellow |
|
HI_BLUE='\033[0;94m' # Blue |
|
HI_PINK='\033[0;95m' # Pink |
|
HI_CYAN='\033[0;96m' # Cyan |
|
HI_WHITE='\033[0;97m' # White |
|
|
|
# Bold High Intensity |
|
B_HI_BLACK='\033[1;90m' # Black |
|
B_HI_RED='\033[1;91m' # Red |
|
B_HI_GREEN='\033[1;92m' # Green |
|
B_HI_YELLOW='\033[1;93m' # Yellow |
|
B_HI_BLUE='\033[1;94m' # Blue |
|
B_HI_PINK='\033[1;95m' # Pink |
|
B_HI_CYAN='\033[1;96m' # Cyan |
|
B_HI_WHITE='\033[1;97m' # White |
|
|
|
# High Intensity backgrounds |
|
BG_HI_BLACK='\033[0;100m' # Black |
|
BG_HI_RED='\033[0;101m' # Red |
|
BG_HI_GREEN='\033[0;102m' # Green |
|
BG_HI_YELLOW='\033[0;103m' # Yellow |
|
BG_HI_BLUE='\033[0;104m' # Blue |
|
BG_HI_PINK='\033[0;105m' # Pink |
|
BG_HI_CYAN='\033[0;106m' # Cyan |
|
BG_HI_WHITE='\033[0;107m' # White |
|
|
|
# Blink |
|
BLINK_BLACK='\033[5;30m' # Black |
|
BLINK_RED='\033[5;31m' # Red |
|
BLINK_GREEN='\033[5;32m' # Green |
|
BLINK_YELLOW='\033[5;33m' # Yellow |
|
BLINK_BLUE='\033[5;34m' # Blue |
|
BLINK_PINK='\033[5;35m' # Pink |
|
BLINK_CYAN='\033[5;36m' # Cyan |
|
BLINK_WHITE='\033[5;37m' # White |
move to https://github.com/kamontat/bash-color