package core_kernel

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ansi_kernel.ColorSource

Sourcetype primary = [
  1. | `Black
  2. | `Red
  3. | `Green
  4. | `Yellow
  5. | `Blue
  6. | `Magenta
  7. | `Cyan
  8. | `White
]
Sourcetype t = [
  1. | primary
  2. | `Color_256 of Color_256.t
  3. | `Default_color
]

Standard 8 colors and 256-color palette. The `Default_colors depend on the terminal but are likely to be the same as `White and `Black (and which one is foreground vs background will depend on whether the terminal is white-on-black or black-on-white)

Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval compare : t -> t -> int
include Ppx_hash_lib.Hashable.S with type t := t
Sourceval hash_fold_t : Base.Hash.state -> t -> Base.Hash.state
Sourceval equal : t -> t -> bool
Sourceval to_int_list : [< t ] -> int list
OCaml

Innovation. Community. Security.