core/char_width library

Functions

charWidth(int rune) int
Returns the terminal display width of a Unicode code point.
charWidthOf(String s) int
Terminal display width of the first grapheme in s.