buildUnicodeBox

fun buildUnicodeBox(title: String = "", borderColumns: Int = 80, builder: StringBuilder.() -> Unit): String

Build a Unicode box whose contents are populated by the specified builder function. Only top and bottom borders are drawn.

Return

The Unicode box.

Parameters

title

The title of the box, if any. Defaults to "", i.e., untitled.

borderColumns

The number of columns for the top and bottom borders.

builder

How to populate the box with text.