Text.Fragmenttype t = fragmentval text : ?style:Ansi.Style.t -> string -> ttext ?style s is a text fragment containing s. When style is provided, it overrides the inherited style for this fragment.
val span : ?style:Ansi.Style.t -> t list -> tspan ?style children is a container grouping children under an optional shared style.
Each wraps children in a span with a single attribute set.
val fg : Ansi.Color.t -> t list -> tfg color children sets the foreground color.
val bg : Ansi.Color.t -> t list -> tbg color children sets the background color.
val color : Ansi.Color.t -> t list -> tcolor is fg.
val bg_color : Ansi.Color.t -> t list -> tbg_color is bg.
val styled : Ansi.Style.t -> t list -> tstyled style children wraps children with the full style.