Module string_utils

Module string_utils 

Source

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)