textproc/p5-Text-CharWidth 0.04p0 OpenBSD
get number of occupied columns of a string on terminal
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Categories
- textproc, perl5
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.
In the other systems
| System | Port | Version |
|---|---|---|
| OpenBSD | textproc/p5-Text-CharWidth | 0.04p0 |
| FreeBSD | textproc/p5-Text-CharWidth | 0.04_2 |
| NetBSD | textproc/p5-Text-CharWidth | 0.04nb18 |
| DragonFly | textproc/p5-Text-CharWidth | 0.04_2 |
| MidnightBSD | textproc/p5-Text-CharWidth | 0.04_2 |
| HardenedBSD | textproc/p5-Text-CharWidth | 0.04_2 |
| GhostBSD | textproc/p5-Text-CharWidth | 0.04_2 |
Install
Binary package:
pkg_add p5-Text-CharWidth
From the ports tree:
cd /usr/ports/textproc/p5-Text-CharWidth && make install
Dependencies
No port depends on this one.