#unicode #helper #environment #function #width #terminal-monospace

sys unistring

Helper functions for unicode in a terminal/monospace environment

2 releases

0.1.1 Jul 18, 2021
0.1.0 Jul 18, 2021

#53 in #width

MPL-2.0 license

8KB
129 lines

unistring

A few helper functions for manipulating unicode strings in a terminal/monospace font environment. This provides a trait on str to get a string's terminal width, and a couple of basic line-wrapping helpers.

Currently uses the GNU libunistring library (although I suspect it's feasible to rewrite into pure rust, and I may attempt that at some point)

Dependencies

~0–1.9MB
~36K SLoC