module LTerm_style:sig..end
type color = private
| |
Default |
(* |
The default color of the terminal.
| *) |
| |
Index of |
(* |
A color given by its index. Most terminal have at least 8
colors.
| *) |
| |
RGB of |
(* |
A color given by its three component between 0 and 255. The
closest color will be used.
| *) |
val default : color
val index : int -> color
val rgb : int -> int -> int -> colorrgb r g b raises Invalid_argument if one of r, g or b
is not in the range 0..255.val black : color
val red : color
val green : color
val yellow : color
val blue : color
val magenta : color
val cyan : color
val white : colorval lblack : color
val lred : color
val lgreen : color
val lyellow : color
val lblue : color
val lmagenta : color
val lcyan : color
val lwhite : colortype t = {
|
bold : |
|
underline : |
|
blink : |
|
reverse : |
|
foreground : |
|
background : |
val bold : t -> bool option
val underline : t -> bool option
val blink : t -> bool option
val reverse : t -> bool option
val foreground : t -> color option
val background : t -> color option
val none : tNone.val merge : t -> t -> tmerge s1 s2 is s2 with all undefined fields set to ones of
s1.val equal : t -> t -> boolequal s1 s2 returns true iff s1 and s2 are equal after
having replaced all None fields by Some false or Some
Default.