-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathspices.mli
69 lines (61 loc) · 1.74 KB
/
spices.mli
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
type color = Tty.Color.t = private
| RGB of int * int * int
| ANSI of int
| ANSI256 of int
| No_color
val color : ?profile:Tty.Profile.t -> string -> color
val gradient : start:color -> finish:color -> steps:int -> color array
module Border : sig
type t
val make :
?top:string ->
?left:string ->
?bottom:string ->
?right:string ->
?top_left:string ->
?top_right:string ->
?bottom_left:string ->
?bottom_right:string ->
?middle_left:string ->
?middle_right:string ->
?middle:string ->
?middle_top:string ->
?middle_bottom:string ->
unit ->
t
val normal : t
val rounded : t
val block : t
val outer_half_block : t
val inner_half_block : t
val thick : t
val double : t
val hidden : t
end
type style
val default : style
val bg : color -> style -> style
val blink : bool -> style -> style
val bold : bool -> style -> style
val faint : bool -> style -> style
val fg : color -> style -> style
val height : int -> style -> style
val italic : bool -> style -> style
val margin_bottom : int -> style -> style
val margin_left : int -> style -> style
val margin_right : int -> style -> style
val margin_top : int -> style -> style
val max_height : int -> style -> style
val max_width : int -> style -> style
val padding_bottom : int -> style -> style
val padding_left : int -> style -> style
val padding_right : int -> style -> style
val padding_top : int -> style -> style
val reverse : bool -> style -> style
val strikethrough : bool -> style -> style
val underline : bool -> style -> style
val width : int option -> style -> style
val border : Border.t -> style -> style
type 'a style_fun =
('a, Format.formatter, unit, unit, unit, string) format6 -> 'a
val build : 'a. style -> 'a style_fun