package terml

  1. Overview
  2. Docs

Module Terml.StyleSource

Sourcetype t =
  1. | Bold
  2. | Faint
  3. | Italic
  4. | Underline
  5. | Reverse
  6. | Conceal
  7. | Crossed
  8. | Overline
  9. | Fg of Color.t
  10. | Bg of Color.t
Sourcetype styled = private {
  1. text : string;
  2. fg : Color.t option;
  3. bg : Color.t option;
  4. underline_color : Color.t option;
  5. bold : bool;
  6. faint : bool;
  7. italic : bool;
  8. underline : bool;
  9. reverse : bool;
  10. conceal : bool;
  11. crossed : bool;
  12. overline : bool;
}
Sourceval styled : ?text:string option -> unit -> styled
Sourceval make_sequence : styled -> t list
Sourceval fg : Color.t -> styled -> styled
Sourceval bg : Color.t -> styled -> styled
Sourceval bold : styled -> styled
Sourceval faint : styled -> styled
Sourceval italic : styled -> styled
Sourceval underline : styled -> styled
Sourceval reverse : styled -> styled
Sourceval conceal : styled -> styled
Sourceval crossed : styled -> styled
Sourceval overline : styled -> styled
Sourceval underline_color : Color.t -> styled -> styled
Sourceval make : string -> styled -> string
Sourceval to_ansii : t -> string
OCaml

Innovation. Community. Security.