13 lines
565 B
Bash
13 lines
565 B
Bash
### Colors ##
|
|
ESC=$(printf '\033') RESET="${ESC}[0m" BLACK="${ESC}[30m" RED="${ESC}[31m"
|
|
GREEN="${ESC}[32m" YELLOW="${ESC}[33m" BLUE="${ESC}[34m" MAGENTA="${ESC}[35m"
|
|
CYAN="${ESC}[36m" WHITE="${ESC}[37m" DEFAULT="${ESC}[39m"
|
|
|
|
### Color Functions ##
|
|
greenprint() { printf "${GREEN}%s${RESET}\n" "$1"; }
|
|
blueprint() { printf "${BLUE}%s${RESET}\n" "$1"; }
|
|
redprint() { printf "${RED}%s${RESET}\n" "$1"; }
|
|
yellowprint() { printf "${YELLOW}%s${RESET}\n" "$1"; }
|
|
magentaprint() { printf "${MAGENTA}%s${RESET}\n" "$1"; }
|
|
cyanprint() { printf "${CYAN}%s${RESET}\n" "$1"; }
|