Commit 66be054f authored by Muhammad Herdiansyah's avatar Muhammad Herdiansyah

Colors: use start++ instead of adding it manually after case

parent de911805
......@@ -1856,13 +1856,12 @@ get_cols() {
block_width="${block_width// /█}"
# Generate the string.
for ((start; start<=end; i++)); do
for ((start; start<=end; start++)); do
case "$start" in
[0-6]) blocks+="${reset}\033[3${start}m\033[4${start}m${block_width}" ;;
7) blocks+="${reset}\033[3${start}m\033[4${start}m${block_width}" ;;
*) blocks2+="\033[38;5;${start}m\033[48;5;${start}m${block_width}" ;;
esac
start="$((start+=1))"
done
# Convert height into spaces.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment