package textutils

  1. Overview
  2. Docs
type t

A Screen.t represents a table after all of the layout calculations have been done.

val render : t -> bars:[ `Ascii | `Unicode ] -> output:(Attr.t list -> Core_kernel.Buffer.t -> unit) -> close:(Core_kernel.Buffer.t -> 'a) -> 'a
val to_string : t -> bars:[ `Ascii | `Unicode ] -> string_with_attr:(Attr.t list -> string -> string) -> string

Given a way to annotate strings with attributes, a t can be output to a string.

OCaml

Innovation. Community. Security.