initialize all colors to allow bash strict mode
Costa Tsaousis (ktsaou) committed
Mar 18, 2017 at 21:30 UTC
8fe42cd96aa86a7590276459e0d744bc0e0d98ce
1 file changed
+26
installer/functions.sh
+26
@@ -17,6 +17,32 @@ check_cmd() {
17
# -----------------------------------------------------------------------------
18
19
setup_terminal() {
20
+ TPUT_RESET=""
21
+ TPUT_BLACK=""
22
+ TPUT_RED=""
23
+ TPUT_GREEN=""
24
+ TPUT_YELLOW=""
25
+ TPUT_BLUE=""
26
+ TPUT_PURPLE=""
27
+ TPUT_CYAN=""
28
+ TPUT_WHITE=""
29
+ TPUT_BGBLACK=""
30
+ TPUT_BGRED=""
31
+ TPUT_BGGREEN=""
32
+ TPUT_BGYELLOW=""
33
+ TPUT_BGBLUE=""
34
+ TPUT_BGPURPLE=""
35
+ TPUT_BGCYAN=""
36
+ TPUT_BGWHITE=""
37
+ TPUT_BOLD=""
38
+ TPUT_DIM=""
39
+ TPUT_UNDERLINED=""
40
+ TPUT_BLINK=""
41
+ TPUT_INVERTED=""
42
+ TPUT_STANDOUT=""
43
+ TPUT_BELL=""
44
+ TPUT_CLEAR=""
45
+
46
# Is stderr on the terminal? If not, then fail
47
test -t 2 || return 1
48