"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 ;;
|
"-cpt") L_OPTION_CPT=1 ;;
|
||||||
"-nolog") L_OPTION_NOLOG=1 ;;
|
"-nolog") L_OPTION_NOLOG=1 ;;
|
||||||
"-hist") L_OPTION_HIST=1 ;;
|
"-hist") L_OPTION_HIST=1 ;;
|
||||||
"-color") if [ ${TERM} != 'dumb' ] && [ ${TERM} != 'unknown' ] && [ ${#TERM} -gt 0 ]; then
|
"-color") L_OPTION_COULEUR=1
|
||||||
# Display color for terminal only
|
|
||||||
L_OPTION_COULEUR=1
|
|
||||||
L_ARG=`echo $2|tr A-Z a-z`
|
L_ARG=`echo $2|tr A-Z a-z`
|
||||||
L_TMP2=${L_ARG:0:1}
|
L_TMP2=${L_ARG:0:1}
|
||||||
if [ "${L_TMP2}" != "-" ]
|
if [ "${L_TMP2}" != "-" ]
|
||||||
@ -109,6 +107,9 @@ do
|
|||||||
L_TMP=$(( ${L_TMP} + 1 ))
|
L_TMP=$(( ${L_TMP} + 1 ))
|
||||||
shift
|
shift
|
||||||
fi
|
fi
|
||||||
|
if [ ${TERM} == 'dumb' ] || [ ${TERM} == 'unknown' ] || [ ${#TERM} -eq 0 ]; then
|
||||||
|
# Affiche les couleurs uniquement dans un terminal
|
||||||
|
L_OPTION_COULEUR=0
|
||||||
fi;;
|
fi;;
|
||||||
"-debug") L_OPTION_DBG=1
|
"-debug") L_OPTION_DBG=1
|
||||||
L_ARG="$2"
|
L_ARG="$2"
|
||||||
|
Loading…
Reference in New Issue
Block a user