Merge pull request #2216 from forslund/bugfix/no-color-term
Check for terminals ability to display colourspull/2224/head
commit
95927fbfd0
15
dev_setup.sh
15
dev_setup.sh
|
@ -115,13 +115,16 @@ function get_YN() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# If tput is available and can handle multiple colors
|
||||||
if found_exe tput ; then
|
if found_exe tput ; then
|
||||||
GREEN=$(tput setaf 2)
|
if [[ $(tput colors) != "-1" ]]; then
|
||||||
BLUE=$(tput setaf 4)
|
GREEN=$(tput setaf 2)
|
||||||
CYAN=$(tput setaf 6)
|
BLUE=$(tput setaf 4)
|
||||||
YELLOW=$(tput setaf 3)
|
CYAN=$(tput setaf 6)
|
||||||
RESET=$(tput sgr0)
|
YELLOW=$(tput setaf 3)
|
||||||
HIGHLIGHT=$YELLOW
|
RESET=$(tput sgr0)
|
||||||
|
HIGHLIGHT=$YELLOW
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Run a setup wizard the very first time that guides the user through some decisions
|
# Run a setup wizard the very first time that guides the user through some decisions
|
||||||
|
|
Loading…
Reference in New Issue