wcwidth

Measures the displayed width of unicode strings in a terminal

Here are some FAQ’s about wcwidth

What is wcwidth Measures the displayed width of unicode strings in a terminal