Ansi_text.StyleSourceinclude module type of Styleinclude Ppx_compare_lib.Comparable.S__local with type t := tinclude Ppx_compare_lib.Equal.S__local with type t := tinclude Ppx_quickcheck_runtime.Quickcheckable.S with type t := tinclude Sexplib0.Sexpable.S with type t := tinclude Sexplib0.Sexpable.Of_sexp with type t := tinclude Sexplib0.Sexpable.Sexp_of with type t := tGives a style that turns off all attributes that are turned on by the given style.
Make a Style.t from parsed CSI parameters. For example the parser, when handling:
"\027[1;38;5;1m"
would invoke:
of_sgr_params [Some 1; Some 38; Some 5; Some 1]
yielding:
[Bold; Fg Red]
Converts a Style.t to a string. For example
[Bold; Fg Standard Red] -> "\027[1;31m"
Simplifies a Style.t by removing redundant attributes. For example Bold; Bg Blue; Reset; Fg Red; Fg Green -> Reset; Fg Green. This runs in O(n^2) time, but should be ok since Style lists are generally short.
Style that results from applying added_style when old_style is already active.
A minimal style that would transition the active state from old_style to old_style + additional_style.