package lambdapi

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

Module Lplib.ColorSource

Sourceval color : bool ref

color tells whether colors can be used in the output.

Sourcetype color =
  1. | Red
  2. | Gre
  3. | Yel
  4. | Blu
  5. | Mag
  6. | Cya

Format transformers (colors).

Sourcetype Format.stag +=
  1. | Color of color
Sourceval color_code : color -> string
Sourceval string_of_color : color -> string
Sourceval color_of_string : string -> color
Sourceval mark_open_stag : (Format.stag -> string) -> Format.stag -> string
Sourceval mark_close_stag : (Format.stag -> string) -> Format.stag -> string
Sourceval update_with_color : Format.formatter -> unit
Sourceval colorize : color -> ('a, 'b, 'c, 'd, 'e, 'f) format6 -> ('a, 'b, 'c, 'd, 'e, 'f) format6
Sourceval pp : ((('a -> 'b -> 'c) -> 'b -> 'c, 'a, 'c) format -> ('d -> 'e, Format.formatter, unit) format) -> 'd -> Format.formatter -> 'e
Sourceval red : ('a, 'b, 'c, 'd, 'e, 'f) format6 -> ('a, 'b, 'c, 'd, 'e, 'f) format6
Sourceval gre : ('a, 'b, 'c, 'd, 'e, 'f) format6 -> ('a, 'b, 'c, 'd, 'e, 'f) format6
Sourceval yel : ('a, 'b, 'c, 'd, 'e, 'f) format6 -> ('a, 'b, 'c, 'd, 'e, 'f) format6
Sourceval blu : ('a, 'b, 'c, 'd, 'e, 'f) format6 -> ('a, 'b, 'c, 'd, 'e, 'f) format6
Sourceval mag : ('a, 'b, 'c, 'd, 'e, 'f) format6 -> ('a, 'b, 'c, 'd, 'e, 'f) format6
Sourceval cya : ('a, 'b, 'c, 'd, 'e, 'f) format6 -> ('a, 'b, 'c, 'd, 'e, 'f) format6
Sourceval g_or_r : bool -> ('a, 'b, 'c, 'd, 'e, 'f) format6 -> ('a, 'b, 'c, 'd, 'e, 'f) format6

g_or_r cond fmt colors the format fmt in green if cond is true and in red otherwise.

OCaml

Innovation. Community. Security.