Functionsยง
- display_
width - Strip ANSI escape codes from a string and return the display width This handles ANSI SGR (Select Graphic Rendition) codes like colors and styles and correctly calculates Unicode character widths (e.g., emoji take 2 columns)