p5-Text-CharWidth

get number of occupied columns of a string on terminal

WWW CVSWeb GITHub
  1. Package version
    p5-Text-CharWidth-0.04p0
  2. Maintainer
    The OpenBSD ports mailing-list

This module allows determining the display width of strings, mostly
useful with multibyte character encodings. It provides functionality
equivalent to C's wcwidth(3), wcswidth(3) and mblen(3).

While most characters have a width of 1, there are exceptions - many
east Asian characters have a width of 2, and some languages use Unicode
"combining characters" which have a zero width.