Fixed text colors
This commit is contained in:
parent
0c1f19f10a
commit
6dc5e41ecb
|
@ -24,16 +24,16 @@ do
|
|||
then
|
||||
if [ $(echo "$widthi % 2" | bc) -eq 1 ]
|
||||
then
|
||||
printf "$(tput setab 7) $text"
|
||||
printf "$(tput setab 7)$(tput setaf 0) $text"
|
||||
else
|
||||
printf "$(tput setab 0) $text"
|
||||
printf "$(tput setab 0)$(tput setaf 7) $text"
|
||||
fi
|
||||
else
|
||||
if [ $(echo "$widthi % 2" | bc) -eq 0 ]
|
||||
then
|
||||
printf "$(tput setab 7) $text"
|
||||
printf "$(tput setab 7)$(tput setaf 0) $text"
|
||||
else
|
||||
printf "$(tput setab 0) $text"
|
||||
printf "$(tput setab 0)$(tput setaf 7) $text"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
|
Reference in New Issue