Calculate the visible width of a string in terminal columns.
Handles ASCII (fast path), East Asian wide characters, emoji, ANSI escape sequences, and zero-width characters.
The string to measure.
Width in terminal columns.
Calculate the visible width of a string in terminal columns.
Handles ASCII (fast path), East Asian wide characters, emoji, ANSI escape sequences, and zero-width characters.