X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=installer%2Ffunctions.sh;h=36d10ec70ad892e066e2d1eba0f7702c1cee37f0;hb=b060bae83cc36fdc4f14120228e4c9b0d1ec42e8;hp=f27b4535b28284dfd8f968ba1a88832d960d28a1;hpb=52a14a9ff8900d13954c6286ae47dabc08bfce2d;p=netdata.git diff --git a/installer/functions.sh b/installer/functions.sh index f27b4535..36d10ec7 100644 --- a/installer/functions.sh +++ b/installer/functions.sh @@ -17,6 +17,32 @@ check_cmd() { # ----------------------------------------------------------------------------- setup_terminal() { + TPUT_RESET="" + TPUT_BLACK="" + TPUT_RED="" + TPUT_GREEN="" + TPUT_YELLOW="" + TPUT_BLUE="" + TPUT_PURPLE="" + TPUT_CYAN="" + TPUT_WHITE="" + TPUT_BGBLACK="" + TPUT_BGRED="" + TPUT_BGGREEN="" + TPUT_BGYELLOW="" + TPUT_BGBLUE="" + TPUT_BGPURPLE="" + TPUT_BGCYAN="" + TPUT_BGWHITE="" + TPUT_BOLD="" + TPUT_DIM="" + TPUT_UNDERLINED="" + TPUT_BLINK="" + TPUT_INVERTED="" + TPUT_STANDOUT="" + TPUT_BELL="" + TPUT_CLEAR="" + # Is stderr on the terminal? If not, then fail test -t 2 || return 1