include sig ... end
val sexp_of_t : t ‑> Sexplib.Sexp.t
val fill : char ‑> width:int ‑> height:int ‑> t
fill
and space
assume width and height are non-negative
val space : width:int ‑> height:int ‑> t
val height : t ‑> int
val hstrut : int ‑> t
empty blocks with either horizontal or vertical extent -- useful for specifing a minimum width or height in conjunction with valign or halign, respectively
val vstrut : int ‑> t
wrap a block with an ANSI escape sequence.
The prefix
and suffix
arguments should render with zero width and height.
val compress_table_header : ?sep_width:int ‑> [ `Cols of (t * t list * halign) list ] ‑> [ `Header of t ] * [ `Rows of t list ]
compress table header according to column widths.
Input: a list of columns of the form (title, values, column alignment).
Output: one header block and row sequence.
Raises: if the values
lists are not the same length in each column.
Example:
first name age first name last name age | last name | | | ==> | | | 30 sue smith 30 sue smith 18 bill rodriguez 18 bill rodriguez 76 rick jones 76 rick jones