Color output only for tty
This commit is contained in:
parent
a30b7d430e
commit
de8826bb2f
1 changed files with 8 additions and 5 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue