Text Components
Termline::Text provides lightweight section titles. The public helper writes to the configured output and returns the rendered content; the lower-level builder only returns a string.
Titles
Termline.title "Deployment"
Example output in a 40-column terminal:
── Deployment ─────────────────────────
The title adapts to the terminal width. Its color, fill character, and width can be changed:
Termline.title "Database", color: :green
Termline.title "Summary", character: "=", width: 60
Builder API
For composition without output, use the builder directly:
rendered = Termline::Text.title("Deployment", width: 40)
Titles remain small formatting helpers and do not introduce a markup parser or component tree.
Last Update: 2026/10/19