package ansifmt

  1. Overview
  2. Docs

Module AnsifmtSource

Sourcemodule Color : sig ... end

Color encodes ANSI colors.

Sourcemodule IO : sig ... end
Sourcemodule Formatting : sig ... end
Sourcemodule Styling : sig ... end
Sourcetype color = Color.t
Sourcetype styling = Styling.t
Sourceval make_styling : ?foreground:Color.t -> ?background:Color.t -> ?bold:bool -> ?dim:bool -> ?italic:bool -> ?underlined:bool -> unit -> Styling.t
Sourceval format : ?stylizer:(Ansifmt__Formatting.Token_type.t -> Styling.t) -> 'a -> using:(module Ansifmt__Formatting.TOKENIZABLE with type t = 'a) -> string
Sourceval print_formatted : ?stylizer:Formatting.Stylizer.t -> ?line_end:string -> ?out:out_channel -> 'a -> using:(module Formatting.TOKENIZABLE with type t = 'a) -> unit
OCaml

Innovation. Community. Security.