type t = [ `Dumb | `Term of string ] optiontype cap = [ | `Ansi| `None
]type color = [ | `Black| `Blue| `Cyan| `Default| `Green| `Magenta| `Red| `White| `Yellow
]type style = [ | `Bg of
[ `Black
| `Blue
| `Cyan
| `Default
| `Green
| `Hi of color
| `Magenta
| `Red
| `White
| `Yellow ]| `Blink of [ `Rapid | `Slow ]| `Bold| `Faint| `Fg of
[ `Black
| `Blue
| `Cyan
| `Default
| `Green
| `Hi of color
| `Magenta
| `Red
| `White
| `Yellow ]| `Italic| `Reverse| `Underline
]val styled_str : cap -> style list -> string -> stringval strip_escapes : string -> string