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 type Format.stag +=
44 | Style of style list
45
46
47
48
49
50 val ansi_of_style_l : style list -> string
51
52
53
54 type styles = {
55 error : style list ;
56 warning : style list ;
57 loc : style list ;
58 }
59
60
61
62
63
64 val default_styles : styles
65
66
67
68
69 val get_styles : unit -> styles
70
71
72
73
74 val set_styles : styles -> unit
75
76
77
78 type setting =
79 | Auto
80 | Always
81 | Never
82
83
84
85
86
87 val default_setting : setting
88
89
90
91
92 val setup : setting option -> unit
93
94
95
96
97 val set_color_tag_handling : Format.formatter -> unit
98
99
100
101
102
103
104OCamldoc 2022-07-22 Misc.Color(3)