Module Terminal
type color=[]type style={fg_color : color option;bg_color : color option;bold : bool option;italic : bool option;underline : bool option;negative : bool option;prefix : string option;suffix : string option;}
val make : ?fg_color:color -> ?bg_color:color -> ?bold:bool -> ?italic:bool -> ?underline:bool -> ?negative:bool -> ?style:style -> ?prefix:string -> ?suffix:string -> unit -> styleCreate a style from the given flags. It is derived from the optional
styleargument if given.
val merge : style -> style -> stylemerge s1 s2returnss1with all defined values ofs2overwritten.
val repr : style -> int listGenerate the ANSI code representing the given style.
val eval : style -> stringGenerate an escape sequence from a style.
val reset_style : styleThe default style
val has_style : Unix.file_descr -> boolWhether an output file descriptor handles styles. Very heuristic, only checks it is a terminal.
val parse : string -> (string * style) listParse strings describing terminal styles in the LS_COLORS syntax. For robustness, ignore meaningless entries and drops undefined styles.