package core_kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type primary = [
  1. | `Black
  2. | `Red
  3. | `Green
  4. | `Yellow
  5. | `Blue
  6. | `Magenta
  7. | `Cyan
  8. | `White
]
type 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)

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