You can search for identifiers within the package.
in-package search v0.2.0
ansifmt
Ansifmt.Styling
type t = {
foreground : Color.t option;
background : Color.t option;
bold : bool;
dim : bool;
italic : bool;
underlined : bool;
}
val none : t
none is the empty styling.
none
val create : ?foreground:Color.t -> ?background:Color.t -> ?bold:bool -> ?dim:bool -> ?italic:bool -> ?underlined:bool -> unit -> t
create ?foreground ?background ?bold ?dim ?italic ?underlined () creates a new style object given the provided configuration.
create ?foreground ?background ?bold ?dim ?italic ?underlined ()
val to_ansi : t -> string
to_ansi styling renders the styling to an ANSI escape sequence as a string.
to_ansi styling
styling