"message.lib: Evo : L'option -color est prise en compte uniquement dans un terminal"
This commit is contained in:
parent
7b23238e51
commit
d015b989ad
@ -95,9 +95,7 @@ do
|
||||
"-cpt") L_OPTION_CPT=1 ;;
|
||||
"-nolog") L_OPTION_NOLOG=1 ;;
|
||||
"-hist") L_OPTION_HIST=1 ;;
|
||||
"-color") if [ ${TERM} != 'dumb' ] && [ ${TERM} != 'unknown' ] && [ ${#TERM} -gt 0 ]; then
|
||||
# Display color for terminal only
|
||||
L_OPTION_COULEUR=1
|
||||
"-color") L_OPTION_COULEUR=1
|
||||
L_ARG=`echo $2|tr A-Z a-z`
|
||||
L_TMP2=${L_ARG:0:1}
|
||||
if [ "${L_TMP2}" != "-" ]
|
||||
@ -109,6 +107,9 @@ do
|
||||
L_TMP=$(( ${L_TMP} + 1 ))
|
||||
shift
|
||||
fi
|
||||
if [ ${TERM} == 'dumb' ] || [ ${TERM} == 'unknown' ] || [ ${#TERM} -eq 0 ]; then
|
||||
# Affiche les couleurs uniquement dans un terminal
|
||||
L_OPTION_COULEUR=0
|
||||
fi;;
|
||||
"-debug") L_OPTION_DBG=1
|
||||
L_ARG="$2"
|
||||
|
Loading…
Reference in New Issue
Block a user