Merge pull request #47 from uutils/fix-readme

Fix width calculation crate mentioned in README
This commit is contained in:
Daniel Hofstetter
2025-04-06 15:08:08 +02:00
committed by GitHub
+3 -4
View File
@@ -98,11 +98,10 @@ nine ten eleven twelve
## Width of grid cells
This library calculates the width of strings as displayed in the terminal using
the [`textwrap`][textwrap] library (with the [`display_width`][display_width] function).
This takes into account the width of characters and ignores ANSI codes.
the [`ansi-width`][ansi-width] crate. This takes into account the width of
characters and ignores ANSI codes.
The width calculation is currently not configurable. If you have a use-case for
which this calculation is wrong, please open an issue.
[textwrap]: https://docs.rs/textwrap/latest/textwrap/index.html
[display_width]: https://docs.rs/textwrap/latest/textwrap/core/fn.display_width.html
[ansi-width]: https://docs.rs/ansi-width