Reset highlighting before coloring progress bars

This commit is contained in:
Dylan 2016-03-29 19:32:46 +11:00
parent 9b58b7cdb7
commit 864795da7d

View file

@ -2457,8 +2457,8 @@ bar() {
total=$(printf %"$((progress_length - elapsed))"s) total=$(printf %"$((progress_length - elapsed))"s)
# Set the colors and swap the spaces for $progress_char # Set the colors and swap the spaces for $progress_char
bar="\033[3${progress_color_elapsed}m${prog// /$progress_char}" bar="\033[0m\033[3${progress_color_elapsed}m${prog// /$progress_char}"
bar+="\033[3${progress_color_total}m${total// /$progress_char}" bar+="\033[0m\033[3${progress_color_total}m${total// /$progress_char}"
printf "%b%s\n" "${bar}${clear}" printf "%b%s\n" "${bar}${clear}"
} }