BSD Ports

devel/py-wcwidth 0.9.2 OpenBSD

measures number of terminal column cells of wide-char code

System
OpenBSD
Repository
OpenBSD ports
Maintainer
The OpenBSD ports mailing-list <[email protected]>
Last update
Commit
5fa82d8362
Categories
devel, lang/python

Description

This API is mainly for Terminal Emulator implementers, or those writing programs that expect to interpreted by a terminal emulator and wish to determine the printable width of a string on a Terminal.

Usually, the length of the string is equivalent to the number of cells it occupies except that there are also some categories of characters which occupy 2 or even 0 cells. POSIX-conforming systems provide wcwidth(3) and wcswidth(3) of which this module's interface mirrors precisely.

In the other systems

SystemPortVersion
OpenBSDdevel/py-wcwidth0.9.2
FreeBSDdevel/py-wcwidth0.8.4
NetBSDdevel/py-wcwidth0.8.3
DragonFlydevel/py-wcwidth0.2.8_1
MidnightBSDdevel/py-wcwidth0.8.2

Install

Binary package:

pkg_add py3-wcwidth

From the ports tree:

cd /usr/ports/devel/py-wcwidth && make install

Dependencies

Build dependencies 5
Run dependencies 1

Commit history 5

DateCommitCreditsLog message
5fa82d8362 sthen wcwidth moved from hatchling to setuptools because it started buikding a C extension; fix MODPY_PYBUILD. build failure reported by aja.
66353474a0 sthen update to py3-wcwidth-0.9.2
0c82e83615 sthen update to py3-wcwidth-0.8.3
790c92c18a sthen fix issues found by codespell
04f31faf2c sthen update to py3-wcwidth-0.8.2