From 9f395666b79ff7704b045e541e5844c3b9bfc229 Mon Sep 17 00:00:00 2001 From: Terts Diepraam Date: Sun, 6 Apr 2025 15:02:51 +0200 Subject: [PATCH] fix width calculation crate --- README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e0c0124..c5af0a1 100644 --- a/README.md +++ b/README.md @@ -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