package coq-core
Module TerminalSource
Source
type color = [ | `DEFAULT| `BLACK| `RED| `GREEN| `YELLOW| `BLUE| `MAGENTA| `CYAN| `WHITE| `LIGHT_BLACK| `LIGHT_RED| `LIGHT_GREEN| `LIGHT_YELLOW| `LIGHT_BLUE| `LIGHT_MAGENTA| `LIGHT_CYAN| `LIGHT_WHITE| `INDEX of int| `RGB of int * int * int
]Source
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 style argument if given.
merge s1 s2 returns s1 with all defined values of s2 overwritten.
This escape sequence resets all attributes.
Whether an output file descriptor handles styles. Very heuristic, only checks it is a terminal.