Lakitna/cli-diagram

Horizontal alignment with colored elements

Lakitna opened this issue · 0 comments

image

This is probably because, when defining the width of the first box the invisible colour characters are included in the count.

Fix this by unstyling the string before getting its width.