Color output only for tty

This commit is contained in:
Christoph Niethammer 2022-02-14 14:34:23 +00:00
parent a30b7d430e
commit de8826bb2f

View file

@ -32,11 +32,14 @@ do
;; ;;
esac esac
done done
# definitions for esear color output to display
Color_Off='\e[0m' # Text Reset # definitions for color output if outputting to tty
IGreen='\e[0;92m' # Intense Green if [ -t 1 ] ; then
IRed='\e[0;91m' # Intense Red Color_Off='\e[0m' # Text Reset
IMagenta='\e[0;95m' # magenta IGreen='\e[0;92m' # Intense Green
IRed='\e[0;91m' # Intense Red
IMagenta='\e[0;95m' # magenta
fi
# intermediate files, logfiles # intermediate files, logfiles
LOGDIR=${LOGDIR:=$PWD} LOGDIR=${LOGDIR:=$PWD}