package tty

  1. Overview
  2. Docs

Module Tty.ColorSource

Sourcetype t = private
  1. | RGB of int * int * int
  2. | ANSI of int
  3. | ANSI256 of int
  4. | No_color
Sourceval make : string -> t
Sourceexception Invalid_color of string
Sourceexception Invalid_color_param of string
Sourceexception Invalid_color_num of string * int
Sourceval no_color : t
Sourceval is_no_color : t -> bool
Sourceval is_rgb : t -> bool
Sourceval is_ansi : t -> bool
Sourceval is_ansi256 : t -> bool
Sourceval to_escape_seq : mode:[> `bg | `fg ] -> t -> string
OCaml

Innovation. Community. Security.