package ansifmt

  1. Overview
  2. Docs

Module Color.MinimalSource

Minimal encodes the 8 default ANSI colors.

Sourcetype t =
  1. | Black
  2. | Red
  3. | Green
  4. | Yellow
  5. | Blue
  6. | Magenta
  7. | Cyan
  8. | White
Sourceval to_int : t -> int

to_int color produces the corresponding ANSI SGR code of the color, which is a value between 0 and 7.