1Misc.Color(3) OCaml library Misc.Color(3)
2
3
4
6 Misc.Color - no description
7
9 Module Misc.Color
10
12 Module Color
13 : sig end
14
15
16
17
18
19
20
21 type color =
22 | Black
23 | Red
24 | Green
25 | Yellow
26 | Blue
27 | Magenta
28 | Cyan
29 | White
30
31
32
33
34 type style =
35 | FG of color
36 | BG of color
37 | Bold
38 | Reset
39
40
41
42
43
44 val ansi_of_style_l : style list -> string
45
46
47
48 type styles = {
49 error : style list ;
50 warning : style list ;
51 loc : style list ;
52 }
53
54
55
56
57
58 val default_styles : styles
59
60
61
62
63 val get_styles : unit -> styles
64
65
66
67
68 val set_styles : styles -> unit
69
70
71
72 type setting =
73 | Auto
74 | Always
75 | Never
76
77
78
79
80
81 val setup : setting option -> unit
82
83
84
85
86 val set_color_tag_handling : Format.formatter -> unit
87
88
89
90
91
92
93OCamldoc 2019-07-30 Misc.Color(3)