Minor improvement to Reflow description

This commit is contained in:
Christian Rocha 2020-10-17 00:48:51 -04:00
parent e7d56cf1b0
commit 75e31d0a68
No known key found for this signature in database
GPG Key ID: D6CC7A16E5878018
2 changed files with 2 additions and 3 deletions

View File

@ -261,8 +261,7 @@ For some Bubble Tea programs in production, see:
* [Bubbles][bubbles]: various Bubble Tea components * [Bubbles][bubbles]: various Bubble Tea components
* [Termenv][termenv]: Advanced ANSI styling for terminal applications * [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.
* [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.
[termenv]: https://github.com/muesli/termenv [termenv]: https://github.com/muesli/termenv
[reflow]: https://github.com/muesli/reflow [reflow]: https://github.com/muesli/reflow

View File

@ -224,7 +224,7 @@ For some Bubble Tea programs in production, see:
* [Bubbles][bubbles]: various Bubble Tea components * [Bubbles][bubbles]: various Bubble Tea components
* [Termenv][termenv]: Advanced ANSI styling for terminal applications * [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 [termenv]: https://github.com/muesli/termenv
[reflow]: https://github.com/muesli/reflow [reflow]: https://github.com/muesli/reflow