Skip to main content

Module tree

Module tree 

Source
Expand description

Tree-drawing primitives for plan rendering.

This module owns the glyphs and joint-selection logic used to draw plan trees. Rendering code combines these with formatting and color helpers from the sibling format and colors modules.

TreeStyle groups every glyph the renderer needs into one struct so callers can swap between the historical Unicode look (parity with gocmdpev), a portable ASCII fallback, and a heavier Unicode style without editing constants per call site.

Structs§

TreeStyle
A complete set of glyphs for drawing a plan tree.

Functions§

node_joint
Choose the joint glyph for a node based on whether it has multiple children or is the last child of its parent.
output_terminator
Glyph used at the leftmost column of an output line for a child plan.
prefix_continuation
Continuation glyphs to extend the prefix as rendering descends.
styled_node_joint
styled_output_terminator
styled_prefix_continuation