package terml

  1. Overview
  2. Docs
type 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
type 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;
}
val styled : ?text:string option -> unit -> styled
val make_sequence : styled -> t list
val fg : Color.t -> styled -> styled
val bg : Color.t -> styled -> styled
val bold : styled -> styled
val faint : styled -> styled
val italic : styled -> styled
val underline : styled -> styled
val reverse : styled -> styled
val conceal : styled -> styled
val crossed : styled -> styled
val overline : styled -> styled
val underline_color : Color.t -> styled -> styled
val make : string -> styled -> string
val to_ansii : t -> string
OCaml

Innovation. Community. Security.