Misc.Color(3) OCaml library Misc.Color(3)

# [NAME](#NAME)

Misc.Color - no description

# [Module](#Module)

Module Misc.Color

# [Documentation](#Documentation)

Module **Color**  
: **sig end**

*type color* =  
| Black  
| Red  
| Green  
| Yellow  
| Blue  
| Magenta  
| Cyan  
| White

*type style* =  
| FG **of** **color**  
| BG **of** **color**  
| Bold  
| Reset

*type Format.stag* +=  
| Style **of** **style list**

*val ansi\_of\_style\_l* : **style list -&gt; string**

*type styles* = {  
error : **style list** ;  
warning : **style list** ;  
loc : **style list** ;  
}

*val default\_styles* : **styles**

*val get\_styles* : **unit -&gt; styles**

*val set\_styles* : **styles -&gt; unit**

*type setting* =  
| Auto  
| Always  
| Never

*val default\_setting* : **setting**

*val setup* : **setting option -&gt; unit**

*val set\_color\_tag\_handling* : **Format.formatter -&gt; unit**

2026-09-15 OCamldoc

---

Document: Misc.Color(3o) from ocaml-4 4.14.4-r3 (Chainguard OS)
Source: https://github.com/ocaml/ocaml
