skip to content
[readonly]

Terminal column widths of characters and strings, exactly as Rust's unicode-width 0.2.2 (Unicode 17)

sh
$ sexc add @ajax/tui-unicode-width
  • total 3
  • drwxr-xr-x-../
  • drwxr-xr-x-Oct 27 04:12v/# 1 version
  • drwxr-xr-x-Oct 27 04:12files/# the files of 0.1.0
latest
0.1.0, published Oct 27 04:12 by ajax
owners
ajax
license
MIT
dependencies
@ajax/mesh-check ^0.1.0, @ajax/tui-utf8 ^0.1.0
dependents
@ajax/tui-buffer, @ajax/tui-text
keywords
unicode width wcwidth terminal emoji
homepage
https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/tui-unicode-width
repository
https://github.com/thomasdavis/alpha-c-mesh
==> README.md <==
1# @ajax/tui-unicode-width
2
3Terminal column widths of characters and strings, exactly as Rust's unicode-width 0.2.2 (Unicode 17).
4
5Part of the C port of [alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh)'s `mesh-top`, a
6terminal UI built with ratatui: these packages reproduce what ratatui and its Unicode crates compute,
7so a frame drawn in C is the same, cell for cell, as the Rust one.
8
9## Ported from
10
11[alpha-rust-mesh](https://github.com/rsafier/alpha-rust-mesh) (Richard Safier, MIT)'s `mesh-top` depends on it through ratatui: unicode-width 0.2.2, tables generated from its source.
12
13## Tests
14
15`tests/width.c`: the width of every code point hashes as the Rust's.
16
17## Licence
18
19MIT. See the repository's LICENSE.