Box

Term.box.BoxType

Box

Defines characters to render boxes.

Row names:

┌─┬┐ top │ ││ head ├─┼┤ headrow │ ││ mid ├─┼┤ row ├─┼┤ footrow │ ││ foot └─┴┘ bottom

each row is an instance of BoxLine

source
Term.box.fitMethod

fit(box::Box, widths::Vector{Int})::String

Creates a box.

The box has one of each level type with columns widths specified by a vector of widhts.

source
Term.box.get_rowMethod
get_row(box, [1, 2, 3], :row)

Gets characters for a row of a Box object.

The level Symbol can be used to specify the box level (:top, :footer...)

source
Term.box.get_title_rowMethod

gettitlerow(row::Symbol, box::Box, title::Union{Nothing, AbstractString}; <keyword arguments>)

Create a box row with a title string.

Can create both titles in the top and bottom row to produce subtitles.

#Arguments:

  • width::Int: width of line
  • style::Union{Nothing: String}: style of line
  • title_style::Union{Nothing: AbstractString}: style of title string
  • justify::Symbol=:left: position of title string

See also get_row.

source