Ansi_text.Attrinclude module type of Attrinclude Ppx_compare_lib.Comparable.S with type t := tinclude Ppx_compare_lib.Comparable.S__local with type t := tinclude Ppx_compare_lib.Equal.S with type t := tinclude Ppx_compare_lib.Equal.S__local with type t := tinclude Ppx_quickcheck_runtime.Quickcheckable.S with type t := tval quickcheck_generator : t Base_quickcheck.Generator.tval quickcheck_observer : t Base_quickcheck.Observer.tval quickcheck_shrinker : t Base_quickcheck.Shrinker.tinclude Sexplib0.Sexpable.S with type t := tinclude Sexplib0.Sexpable.Of_sexp with type t := tval t_of_sexp : Sexplib0.Sexp.t -> tinclude Sexplib0.Sexpable.Sexp_of with type t := tval sexp_of_t : t -> Sexplib0.Sexp.tWhether new_attr overrides the style effects of old_attr.
val of_codes : int list -> tCreates an Attr.t from a list of SGR parameter codes. Known codes (like 1 for bold or 38;5;196 for 256-color red foreground) are parsed into specific variants. Unrecognized codes are returned as Other codes.
val to_code : t -> int listConverts an Attr.t to an ANSI code.
val to_string : t -> stringConverts an Attr.t to a string. For example Fg Standard Red -> "31".
val to_string_hum : t -> stringA somewhat human-readable name for what the attribute is changing.