Private API
This page lists non-exported (internal) symbols of CTSolvers.Strategies.
From CTSolvers.Strategies
_print_labeled_multiline
CTSolvers.Strategies._print_labeled_multiline — Function
_print_labeled_multiline(
io::IO,
prefix::String,
cont::String,
fmt,
label::String,
text::String
)
Print a labeled field with multi-line text support, aligning continuation lines under the text.
The first line is printed as prefix + colored_label + text_line_1. Each subsequent line (split on '\n') is indented to align with the start of the text, using cont followed by spaces equal to the visible length of label.
Arguments
io::IO: Output streamprefix::String: Prefix for the first line (e.g.,"├─ "or" │ ")cont::String: Continuation prefix for subsequent lines (e.g.,"│ "or" ")fmt: Format codes fromget_format_codeslabel::String: The field label text (e.g.,"description: ")text::String: The field value, may contain'\n'for multi-line content
Example
fmt = get_format_codes(stdout)
_print_labeled_multiline(stdout, "├─ ", "│ ", fmt, "description: ", "Line one.\nLine two.")
# Output:
# ├─ description: Line one.
# │ Line two.get_format_codes
CTSolvers.Strategies.get_format_codes — Function
Get ANSI formatting codes based on terminal color support.
Returns a NamedTuple with formatting codes for consistent display.