package ansifmt

  1. Overview
  2. Docs

Ground encodes the information on whether a certain color is on the foreground or the background.

type t =
  1. | Foreground
  2. | Background
val to_int : ?bright:bool -> t -> int

to_int ?bright ground produces the corresponding leading digit for an SGR escape sequence to be set as foreground or background.

OCaml

Innovation. Community. Security.