Update colors

This commit is contained in:
Roman Ožana
2023-10-30 15:21:23 +01:00
parent 5d014b915c
commit 834878ea5e
3 changed files with 41 additions and 27 deletions

View File

@@ -5,8 +5,26 @@ echo "${RED}This is red text${NC} and this is ${GREEN}green ${BLINK}blink${NC} t
echo "this is ${MAGENTA}magenta ${BLINK}blink${NC} text${NC}"
# or you can use the functions
echo $(gray "[INFO] " && green "This is gree test")
echo $(gray "[INFO] " && green "This is green test")
# there can be a function that uses the colors
function info() { echo $(gray "[INFO] " && yellow "$@"); }
info "This is a info test"
# or you can use the functions directly
printf "${GRAY}GRAY${NC}\n"
printf "${LIGHT_GRAY}LIGHT_GRAY${NC}\n"
printf "${YELLOW}YELLOW${NC}\n"
printf "${LIGHT_YELLOW}LIGHT_YELLOW${NC}\n"
printf "${GREEN}GREEN${NC}\n"
printf "${LIGHT_GREEN}LIGHT_GREEN${NC}\n"
printf "${RED}RED${NC}\n"
printf "${LIGHT_RED}LIGHT_RED${NC}\n"
printf "${BLUE}BLUE${NC}\n"
printf "${LIGHT_BLUE}LIGHT_BLUE${NC}\n"
printf "${MAGENTA}MAGENTA${NC}\n"
printf "${LIGHT_MAGENTA}LIGHT_MAGENTA${NC}\n"
printf "${CYAN}CYAN${NC}\n"
printf "${WHITE}WHITE${NC}\n"
printf "${BLACK}BLACK${NC}\n"