3 ms·
I really would love this if it would use more characters (UTF-8?) to create more beautiful diagrams: Instead of this: + - - - + ' HELLO ' + - -
by FreeHugs 7y ago
I really would love this if it would use more characters (UTF-8?) to create more beautiful diagrams:
Instead of this:
+ - - - +
' HELLO '
+ - - - +
Do this:
┌───────┐
│ HELLO │
└───────┘
There are so many characters available for this, that it would be possible to draw totally awesome diagrams in just text:
https://www.w3schools.com/charsets/ref_utf_box.asp https://www.w3schools.com/charsets/ref_utf_box.asp
- crooked-v 7y agoOn this note, Midnight Commander, ZZT, and MegaZeux come to mind for classic apps with UIs constructed entirely from box-drawing characters.
- ggerganov 7y agoHere is a very quick "sed" hack to replace vertical and horizontal lines: https://dot-to-ascii.ggerganov.com/staging/ https://dot-to-ascii.ggerganov.com/staging/ Definitely looks better. Might look into fixing the corners and arrows as well before merging in master.
- wrinklytidbits 7y agoThis is pretty easy to implement: https://github.com/ggerganov/dot-to-ascii/blob/79fd551467457a42f36d164659d784e1c0d9afc0/dot-to-ascii.php#L6 https://github.com/ggerganov/dot-to-ascii/blob/79fd551467457... Just replace `--as_ascii` with `--as=boxart`[1] 1. https://metacpan.org/pod/distribution/Graph-Easy/bin/graph-easy#ARGUMENTS https://metacpan.org/pod/distribution/Graph-Easy/bin/graph-e...
- ggerganov 7y agoThanks for this comment! I didn't know about the "--as=boxart" option. I just made this the default display, with an option to toggle back to "--as_ascii".