mux.text_width
Measures the visible byte width of styled text.
Function
Synopsis
mux.text_width( value )
Arguments
string value- Styled or unstyled text.
Returns
number width- The number of visible bytes, excluding markup and ANSI styling.
Notes
The result is a byte width, not a Unicode display-cell calculation.