OpenBSD Handbook

Current snapshot · amd64 · Generated 2026-09-09

p5-Text-CharWidth-0.04p0

get number of occupied columns of a string on terminal

Back to search · Project homepage

Description

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.

Package information

Ports path
textproc/p5-Text-CharWidth
Package architecture
amd64
Maintainer
The OpenBSD ports mailing-list <ports@openbsd.org>
Categories
textproc, perl5
Available flavors
None listed

These are ports metadata. Binary availability depends on the release, architecture and mirror. Build and test dependencies are not an installation checklist.

Direct dependencies

None listed in sqlports.

Installing and updating packages · Package details as JSON