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
done
# definitions for esear color output to display
Color_Off='\e[0m' # Text Reset
IGreen='\e[0;92m' # Intense Green
IRed='\e[0;91m' # Intense Red
IMagenta='\e[0;95m' # magenta
# definitions for color output if outputting to tty
if [ -t 1 ] ; then
Color_Off='\e[0m' # Text Reset
IGreen='\e[0;92m' # Intense Green
IRed='\e[0;91m' # Intense Red
IMagenta='\e[0;95m' # magenta
fi
# intermediate files, logfiles
LOGDIR=${LOGDIR:=$PWD}