Description
Calculates how wide Unicode strings will appear in monospace terminal layouts. It is useful for tables, prompts, progress bars, logs, and command-line tools that need aligned text.
Display width differs across terminals and Unicode versions. Test emoji, combining marks, CJK text, and ambiguous-width characters before relying on perfect alignment.