I think that with all the unicodes lying around these days we can do a little nicer: ┌───┐ ┌─────┤ 1 ├─────┐ │ └───┘ │ ┌─┴─┐ ┌─┴─┐ ┌─┤ 2 ├─┐ ┌─┤ 3 ├─┐ │ └───┘ │ │ └───┘ │ ┌─┴─┐ ┌─┴─┐ ┌─┴─┐ ┌─┴─┐ │ 4 │ │ 5 │ │ 6 │ │ 7 │ └───┘ └───┘ └───┘ └───┘ (Better if the presentation doesn't lead beyond the font.)
A variation, using stronger lines on the boxes than the lines between them, and curving the corners of the lines: ┏━━━┓ ╭─────┨ 1 ┠─────╮ │ ┗━━━┛ │ ┏━┷━┓ ┏━┷━┓ ╭─┨ 2 ┠─╮ ╭─┨ 3 ┠─╮ │ ┗━━━┛ │ │ ┗━━━┛ │ ┏━┷━┓ ┏━┷━┓ ┏━┷━┓ ┏━┷━┓ ┃ 4 ┃ ┃ 5 ┃ ┃ 6 ┃ ┃ 7 ┃ ┗━━━┛ ┗━━━┛ ┗━━━┛ ┗━━━┛ Subjectively superior, though the thick lines can be overbearing in some fonts. Or with doubled lines on boxes: ╔═══╗ ╭─────╢ 1 ╟─────╮ │ ╚═══╝ │ ╔═…
Show HN: Ascii_tree – A way to create beautiful ASCII trees
21–26 of 26 posts
Re: Show HN: Ascii_tree – A way to create beautiful ASCII trees
#22Earlier quoted context omitted.
A variation, using stronger lines on the boxes than the lines between them, and curving the corners of the lines: ┏━━━┓ ╭─────┨ 1 ┠─────╮ │ ┗━━━┛ │ ┏━┷━┓ ┏━┷━┓ ╭─┨ 2 ┠─╮ ╭─┨ 3 ┠─╮ │ ┗━━━┛ │ │ ┗━━━┛ │ ┏━┷━┓ ┏━┷━┓ ┏━┷━┓ ┏━┷━┓ ┃ 4 ┃ ┃ 5 ┃ ┃ 6 ┃ ┃ 7 ┃ ┗━━━┛ ┗━━━┛ ┗━━━┛ ┗━━━┛ Subjectively superior, though the thick lines can be overbearing in some fonts. Or with doubled lines on boxes: ╔═══╗ ╭─────╢ 1 ╟─────╮ │ ╚═══╝ │ ╔═…
I'd say it depends. https://i.imgur.com/RntN8lK.png
Re: Show HN: Ascii_tree – A way to create beautiful ASCII trees
#23I think that with all the unicodes lying around these days we can do a little nicer: ┌───┐ ┌─────┤ 1 ├─────┐ │ └───┘ │ ┌─┴─┐ ┌─┴─┐ ┌─┤ 2 ├─┐ ┌─┤ 3 ├─┐ │ └───┘ │ │ └───┘ │ ┌─┴─┐ ┌─┴─┐ ┌─┴─┐ ┌─┴─┐ │ 4 │ │ 5 │ │ 6 │ │ 7 │ └───┘ └───┘ └───┘ └───┘ (Better if the presentation doesn't lead beyond the font.)
It was the best we could do, 30 years ago, but today "text" means untrusted Unicode of arbitrary language/script/direction/length, and the number of cases where you can throw it to an output system optimized for displaying "1", "2", "3" is rapidly dwindling.
Re: Show HN: Ascii_tree – A way to create beautiful ASCII trees
#24https://github.com/EFanZh/tree-graph-generator
Demo: https://efanzh.org/tree-graph-generator/
But it doesn’t have a good front end yet.
Re: Show HN: Ascii_tree – A way to create beautiful ASCII trees
#25Re: Show HN: Ascii_tree – A way to create beautiful ASCII trees
#26I think that with all the unicodes lying around these days we can do a little nicer: ┌───┐ ┌─────┤ 1 ├─────┐ │ └───┘ │ ┌─┴─┐ ┌─┴─┐ ┌─┤ 2 ├─┐ ┌─┤ 3 ├─┐ │ └───┘ │ │ └───┘ │ ┌─┴─┐ ┌─┴─┐ ┌─┴─┐ ┌─┴─┐ │ 4 │ │ 5 │ │ 6 │ │ 7 │ └───┘ └───┘ └───┘ └───┘ (Better if the presentation doesn't lead beyond the font.)
I think that I shall never see A graph more lovely than a tree. A tree whose crucial property Is loop-free connectivity. A tree that must be sure to span So packets can reach every LAN. First, the root must be selected. By ID, it is elected. Least-cost paths from root are traced. In the tree, these paths are placed. A mesh is made by folks like me, Then bridges find a spanning tree. Radia Perlman, 'Algoryhme' https:/…