stathissideris / ditaa

ditaa is a small command-line utility that can convert diagrams drawn using ascii art ('drawings' that contain characters that resemble lines like | / - ), into proper bitmap graphics.
GNU Lesser General Public License v3.0
924 stars 87 forks source link

Q? How to colour a rectangle that is thinner than 4 characters? #28

Open yatesco opened 6 years ago

yatesco commented 6 years ago

Hi - thanks for ditaa!

I understand that I can do:

+----+
|cGRE|
|ABCD|
+----+

but what if my box is only 1 character wide:

+-+
|cGRE|
|A|
+-+

Is this supported, and if so, what does it look like?

roshanq commented 6 years ago

I'm writing a patch for 2 character color codes... I can extend it to use just 1 character, if we can fix a range of Unicode characters we can use for set colors. Let me know if you want that patch

roshanq commented 6 years ago

FYI: I have submitted a Pull request which can have two character codes.... Can be extended for special one character codes, if need be