devel/py-cwcwidth 0.1.12 OpenBSD
Python bindings for C wc(s)width
- System
- OpenBSD
- Repository
- OpenBSD ports
- Maintainer
- The OpenBSD ports mailing-list <[email protected]>
- Categories
- devel, lang/python
Description
To compute the number of columns needed to print a string, POSIX.1-2001 and POSIX.1-2008 define two functions: wcwidth and wcswidth. Given a character or string, they return the required number of columns or error out with -1 if they encounter a nonprintable character.
This module presents a Python interface to these functions.
It is similar to "wcwidth", but using the C functions directly instead of Python emulations.
In the other systems
| System | Port | Version |
|---|---|---|
| OpenBSD | devel/py-cwcwidth | 0.1.12 |
| FreeBSD | devel/py-cwcwidth | 0.1.12 |
| NetBSD | devel/py-cwcwidth | 0.1.12 |
| DragonFly | devel/py-cwcwidth | 0.1.10 |
| HardenedBSD | devel/py-cwcwidth | 0.1.12 |
| GhostBSD | devel/py-cwcwidth | 0.1.12 |
Install
Binary package:
pkg_add py3-cwcwidth
From the ports tree:
cd /usr/ports/devel/py-cwcwidth && make install