Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 22 lines (18 sloc) 0.488 kB
6d1905a @semperos Add colorized output to shell scripts
authored
1 #!/usr/bin/env bash
2
3 #
4 # Sourced only
5 #
6
7 # Text color variables
8 txtund=$(tput sgr 0 1) # Underline
9 txtbld=$(tput bold) # Bold
10 regred=$(tput setaf 1) # Red
11 regblu=$(tput setaf 4) # Blue
12 reggrn=$(tput setaf 2) # Green
13 regwht=$(tput setaf 7) # White
14 txtrst=$(tput sgr0) # Reset
15 info=${regwht}*${txtrst} # Feedback
16 pass=${regblu}*${txtrst}
17 warn=${regred}*${txtrst}
18 ques=${regblu}?${txtrst}
19
20 FAIL_MSG="${regred}[FAILURE]${txtrst}"
21 SUCCESS_MSG="${reggrn}[SUCCESS]${txtrst}"
Something went wrong with that request. Please try again.