From 75e31d0a68b27721743047011e63844c0e331680 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Sat, 17 Oct 2020 00:48:51 -0400 Subject: [PATCH] Minor improvement to Reflow description --- README.md | 3 +-- tutorials/basics/README.md | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 049c93e..cc916df 100644 --- a/README.md +++ b/README.md @@ -261,8 +261,7 @@ For some Bubble Tea programs in production, see: * [Bubbles][bubbles]: various Bubble Tea components * [Termenv][termenv]: Advanced ANSI styling for terminal applications -* [Reflow][reflow]: ANSI-aware methods for formatting blocks of text and measuring widths of strings. Many runes, such as East Asian charcters and emojis, are two cells wide, so measuring a layout with `len()` often won't cut it. Reflow is particularly nice for this as it measures character widths while ignoring any ANSI sequences present. -* [go-runewidth][runewidth]: Measure the physical width of strings in terms of terminal cells. Many runes, such as East Asian charcters and emojis, are two cells wide, so measuring a layout with `len()` often won't cut it. +* [Reflow][reflow]: ANSI-aware methods for formatting and generally working with text. Of particular note is `PrintableRuneWidth` in the `ansi` sub-package which measures the physical widths of strings. Many runes, such as East Asian characters, emojis, and various unicode symbols are two cells wide, so measuring a layout with `len()` often won't cut it. Reflow is particularly nice for this as it measures character widths while ignoring any ANSI sequences present. [termenv]: https://github.com/muesli/termenv [reflow]: https://github.com/muesli/reflow diff --git a/tutorials/basics/README.md b/tutorials/basics/README.md index 7864b63..a8f3a78 100644 --- a/tutorials/basics/README.md +++ b/tutorials/basics/README.md @@ -224,7 +224,7 @@ For some Bubble Tea programs in production, see: * [Bubbles][bubbles]: various Bubble Tea components * [Termenv][termenv]: Advanced ANSI styling for terminal applications -* [Reflow][reflow]: ANSI-aware methods for formatting blocks of text and measuring widths of strings. Many runes, such as East Asian charcters and emojis, are two cells wide, so measuring a layout with `len()` often won't cut it. Reflow is particularly nice for this as it measures character widths while ignoring any ANSI sequences present. +* [Reflow][reflow]: ANSI-aware methods for formatting and generally working with text. Of particular note is `PrintableRuneWidth` in the `ansi` sub-package which measures the physical widths of strings. Many runes, such as East Asian characters, emojis, and various unicode symbols are two cells wide, so measuring a layout with `len()` often won't cut it. Reflow is particularly nice for this as it measures character widths while ignoring any ANSI sequences present. [termenv]: https://github.com/muesli/termenv [reflow]: https://github.com/muesli/reflow