remove colored output at least for TERMs starting with "vt"

This commit is contained in:
Frank W. Bergmann 2017-06-18 13:23:37 +02:00
parent d68f0999a4
commit 349496ddca

View File

@ -102,6 +102,10 @@ __INTERACTIVE=""
if [ -t 1 ]; then if [ -t 1 ]; then
__INTERACTIVE="1" __INTERACTIVE="1"
fi fi
if [[ "$TERM" =~ "^vt" ]]
then
unset __INTERACTIVE
fi
__green() { __green() {
if [ "$__INTERACTIVE" ]; then if [ "$__INTERACTIVE" ]; then