X-Git-Url: https://arthur.barton.de/gitweb/?p=netdata.git;a=blobdiff_plain;f=installer%2Ffunctions.sh;h=36d10ec70ad892e066e2d1eba0f7702c1cee37f0;hp=f27b4535b28284dfd8f968ba1a88832d960d28a1;hb=HEAD;hpb=afb4fa0f1e3ecf04fa13fc5a4b8b5d7544c5c543 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