Terminal
val make : ?fg_color:color -> ?bg_color:color -> ?bold:bool -> ?italic:bool -> ?underline:bool ->
?negative:bool -> ?style:style -> ?prefix:string -> ?suffix:string -> unit -> style
Create a style from the given flags. It is derived from the optional style
argument if given.
merge s1 s2
returns s1
with all defined values of s2
overwritten.
val repr : style -> int list
Generate the ANSI code representing the given style.
val eval : style -> string
Generate an escape sequence from a style.
val reset_style : style
The default style
Whether an output file descriptor handles styles. Very heuristic, only checks it is a terminal.
val parse : string -> (string * style) list
Parse strings describing terminal styles in the LS_COLORS syntax. For robustness, ignore meaningless entries and drops undefined styles.