mux.text
mux.text provides validation, styling, measurement, and truncation helpers for
styled text.
Functions
| Function | Description |
|---|---|
is_printable_ascii | Tests whether a string contains only printable ASCII bytes. |
markup | Validates styled-text markup. |
strip_style | Removes markup and ANSI styling. |
style | Applies styles described by an options table. |
truncate | Truncates styled text to a visible width. |
width | Returns the visible byte width of styled text. |
See Styled Text for an overview of the markup format and supported presentation features.