dune/src/ansi_color.mli

12 lines
428 B
OCaml
Raw Normal View History

2016-12-02 13:54:32 +00:00
val colorize : key:string -> string -> string
val strip : string -> string
val stderr_supports_colors : bool Lazy.t
val setup_env_for_ocaml_colors : unit Lazy.t
2017-02-24 11:16:55 +00:00
(** Strip colors in [not (Lazy.force stderr_supports_colors)] *)
val strip_colors_for_stderr : string -> string
(** Enable the interpretation of ["loc"], ["error"] and ["warning"] tags for
[Format.err_formatter] *)
val setup_err_formatter_colors : unit -> unit