Module Hxd.Fmt

val invalid_arg : ('aStdlib.Format.formatter, unit, 'b) Stdlib.format4 -> 'a
val style_renderer_of_raw : string -> [> `Ansi | `None ]
val style_renderer_to_raw : [< `Ansi | `None ] -> string
val style_renderer : Stdlib.Format.formatter -> [> `Ansi | `None ]
val set_style_renderer : Stdlib.Format.formatter -> [< `Ansi | `None ] -> unit
val ansi_style_reset : string
type standard = [
| `Black
| `Red
| `Green
| `Yellow
| `Blue
| `Magenta
| `Cyan
| `White
]
type bright = [
| `Bright of standard
]
type bit8 = [
| `bit8 of int * int * int
]
type bit24 = [
| `bit24 of int * int * int
]
type grayscale = [
| `Grayscale of int
]
type style = [
| `None
| `Style of [ `Fg | `Bg ] * [ standard | bright | bit8 | bit24 | grayscale ]
]
type rest = [
| standard
| bright
| bit8
| grayscale
]
val ansi_style_code : [< `None | `Style of [< `Bg | `Fg ] * [< `Black | `Blue | `Bright of standard | `Cyan | `Grayscale of int | `Green | `Magenta | `Red | `White | `Yellow | `bit24 of int * int * int | `bit8 of int * int * int ] ] -> string
val styled : [< `None | `Style of [< `Bg | `Fg ] * [< `Black | `Blue | `Bright of standard | `Cyan | `Grayscale of int | `Green | `Magenta | `Red | `White | `Yellow | `bit24 of int * int * int | `bit8 of int * int * int ] ] -> (Stdlib.Format.formatter -> 'a -> unit) -> Stdlib.Format.formatter -> 'a -> unit
val with_buffer : ?⁠like:Stdlib.Format.formatter -> Stdlib.Buffer.t -> Stdlib.Format.formatter
val strf_like : Stdlib.Format.formatter -> ('aStdlib.Format.formatter, unit, string) Stdlib.format4 -> 'a