Commit 3f640cbd authored by Ralf Jung's avatar Ralf Jung

fix colors

parent ffa4df5f
# provide some variables to get colorful output # provide some variables to get colorful output
DARKGRAY='\033[1;30m' DARKGRAY='0;30'
RED='\033[0;31m' RED='0;31'
LIGHTRED='\033[1;31m' LIGHTRED='1;31'
GREEN='\033[0;32m' GREEN='0;32'
YELLOW='\033[1;33m' YELLOW='1;33'
BLUE='\033[0;34m' BLUE='0;34'
PURPLE='\033[0;35m' PURPLE='0;35'
LIGHTPURPLE='\033[1;35m' LIGHTPURPLE='1;35'
CYAN='\033[0;36m' CYAN='0;36'
WHITE='\033[1;37m' WHITE='1;37'
RESET='\033[0m'
echo_color() { echo_color() {
# $1: the color # $1: the color
# $2: the string # $2: the string
echo "$1$2$RESET" echo -e "\e[${1}m${2}\e[0m"
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment