package easy_logging

  1. Overview
  2. Docs

Terminal styling function

type color =
  1. | Default
  2. | Black
  3. | Red
  4. | Green
  5. | Yellow
  6. | Blue
  7. | Magenta
  8. | Cyan
  9. | Gray
  10. | White
  11. | LRed
  12. | LGreen
  13. | LYellow
  14. | LBlue
  15. | LMagenta
  16. | LCyan
  17. | LGray

Terminal colors

type format =
  1. | Bold
  2. | Underline
  3. | Invert
  4. | Fg of color
  5. | Bg of color

Terminal styles

val to_fg_code : color -> int
val to_bg_code : color -> int
val style_to_codes : format -> int * int
val format : format list -> string -> string

format styles str formats str to the given styles