Ansi_text.AttrSourceinclude module type of Attrtype t = | Reset| Boldintensity
*)| Faintintensity
*)| Normal_weightintensity
*)| Italicemphasis
*)| Frakturemphasis (rarely supported)
*)| Not_emphasisemphasis
*)| Underlineunderline
*)| Double_ulunderline
*)| Not_underlineunderline
*)| Blinkblink
*)| Fast_blinkblink (rarely supported)
*)| Not_blinkblink
*)| Framedframing (rarely supported)
*)| Encircledframing (rarely supported)
*)| Not_framedframing (also cancels Encircled)
| Superscriptsub/super script (rarely supported)
*)| Subscriptsub/super script (rarely supported)
*)| Not_scriptsub/super script
*)| Invertinvert fg/bg colors
*)| Not_invertinvert fg/bg colors
*)| Hidehide text
*)| Not_hidehide text
*)| Strikestrikethrough
*)| Not_strikestrikethrough
*)| Overlineoverline
*)| Not_overlineoverline
*)| Variable_widthproportional spacing (rarely supported)
*)| Fixed_widthproportional spacing
*)| Fg of Color.t| Bg of Color.t| Ul_color of Color.t| Font of int0-10; default font is 0 (rarely supported)
*)| Ideogram of int0-5; no ideograms is 5 (rarely supported)
*)| Other of int listGrouped into related attributes that override one another, e.g. intensity, emphasis.
include 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 an attribute that turns off the given atribute (if applicable).
Whether new_attr overrides the style effects of old_attr. For example, Bold, Faint, and Normal_weight all override one another.
Creates 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.
Converts an Attr.t to a string. For example Fg Standard Red -> "31".