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