BSD Ports

devel/py-wcwidth 0.8.3 NetBSD

Measures number of Terminal column cells of wide-character codes

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
05759a1774
License
mit
Categories
devel, python
Package size
309.9 KiB, 6976.0 KiB installed

Description

This Library is mainly for those implementing a Terminal Emulator, or programs that carefully produce output to be interpreted by one

In the other systems

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

Install

Binary package:

pkgin install py311-wcwidth

From pkgsrc:

cd /usr/pkgsrc/devel/py-wcwidth && make install clean

Dependencies

Run dependencies 1

Configuration

No options to configure.

Service scripts
none
Flavors
py312-wcwidth-0.8.3, py313-wcwidth-0.8.3, py314-wcwidth-0.8.3

Commit history 4

DateCommitCreditsLog message
05759a1774 adam py-wcwidth: updated to 0.9.2
0.9.2 *2026-10-04* * **Bugfix** `wrap()`_ should omit an empty line as output, like `textwrap.wrap()`_ * **Bugfix** `clip()`_ when using non-default argument, ``tabsize=0`` * **Bugfix** regional-indicator pairs (flags) when corrected for terminals that show lone regional indicators as narrow (xterm, wezterm, VTE, and others) in `wcstwidth()`_ and `width()`_
e269783223 adam py-wcwidth: updated to 0.9.1
0.9.1 *2026-09-23* * **Bugfix** a regression in 0.9.0 Python and libwcwidth_ `width()`_ mis-measured CSI sequences over 64 bytes * **Performance** improvement of ~15% for 11 many Python API functions when using default ``ambiguous_width`` and ``term_program`` arguments. 0.9.0 *2026-09-23* * **New** Optional CPython extension using libwcwidth_, improving performance 10-58x * **Drop Support** for Python 3.8
077a0d2471 adam py-wcwidth: updated to 0.8.4
0.8.4 *2026-09-17* * **Bugfix** `clip()`_ hangs with OSC 8 hyperlinks in some conditions * **Bugfix** width of ITU T.416 colon-format SGR color parameters * **Bugfix** width of OSC 66 text sizing sequences without a text field * **Bugfix** `width()`_, `ljust()`_, `rjust()`_, `center()`_, `clip()`_ and `strip_sequences()`_ treated ``ESC ( LF`` as text instead of a character set designation (rare) * **Bugfix** `clip()`_ painter's algorithm and "tab expansion" should be spaces * **Changed** `iter_graphemes()`_ clustering rule GB9c for Unicode 18.0 * **Changed** ``ambiguous_width`` arguments are now clamped to allowed range (1, 2) * **Changed** `wrap()`_ now raises ``ValueError`` for a width of zero or less, matching stdlib ``textwrap``. Previously ``wrap('女', 0)`` returned ``['女']`` …
95887c080c wiz py-wcwidth: update to 0.8.3.
0.8.3 2026-08-28 Bugfix Do not hang on wrap() calls of width 1 with text containing OSC8 hyperlinks and wide characters, PR #231. Bugfix clip() with propagate_sgr=True, should match behavior of propagate_sgr(), PR #235.