package stdune

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = [
  1. | `Fg_default
  2. | `Fg_black
  3. | `Fg_red
  4. | `Fg_green
  5. | `Fg_yellow
  6. | `Fg_blue
  7. | `Fg_magenta
  8. | `Fg_cyan
  9. | `Fg_white
  10. | `Fg_bright_black
  11. | `Fg_bright_red
  12. | `Fg_bright_green
  13. | `Fg_bright_yellow
  14. | `Fg_bright_blue
  15. | `Fg_bright_magenta
  16. | `Fg_bright_cyan
  17. | `Fg_bright_white
  18. | `Fg_8_bit_color of RGB8.t
  19. | `Fg_24_bit_color of RGB24.t
  20. | `Bg_default
  21. | `Bg_black
  22. | `Bg_red
  23. | `Bg_green
  24. | `Bg_yellow
  25. | `Bg_blue
  26. | `Bg_magenta
  27. | `Bg_cyan
  28. | `Bg_white
  29. | `Bg_bright_black
  30. | `Bg_bright_red
  31. | `Bg_bright_green
  32. | `Bg_bright_yellow
  33. | `Bg_bright_blue
  34. | `Bg_bright_magenta
  35. | `Bg_bright_cyan
  36. | `Bg_bright_white
  37. | `Bg_8_bit_color of RGB8.t
  38. | `Bg_24_bit_color of RGB24.t
  39. | `Bold
  40. | `Dim
  41. | `Italic
  42. | `Underline
]

ANSI terminal styles

val to_dyn : t -> Dyn.t
val escape_sequence : t list -> string

Ansi escape sequence that set the terminal style to exactly these styles

OCaml

Innovation. Community. Security.