Text in a box: word-wrapped (trimmed or not) or truncated, aligned, scrolled, as ratatui's Paragraph
$ sexc add @ajax/tui-paragraph- total 3
- drwxr-xr-x-../
- drwxr-xr-x-Oct 27 04:12v/# 1 version
- drwxr-xr-x-Oct 27 04:12files/# the files of 0.1.0
- latest
- 0.1.0, published Oct 27 04:12 by ajax
- owners
- ajax
- license
- MIT
- dependencies
- @ajax/mesh-check ^0.1.0, @ajax/tui-block ^0.1.0, @ajax/tui-grapheme ^0.1.0, @ajax/tui-utf8 ^0.1.0
- dependents
- @ajax/mesh-top-ui-kit
- keywords
- tui terminal paragraph wrap ratatui
- homepage
- https://github.com/thomasdavis/alpha-c-mesh/tree/main/packages/tui-paragraph
- repository
- https://github.com/thomasdavis/alpha-c-mesh
1# @ajax/tui-paragraph 2 3Text in a box: word-wrapped (trimmed or not) or truncated, aligned, scrolled, as ratatui's Paragraph. 4 5## Ported from 6 7ratatui-widgets 0.3.2 `paragraph.rs` and `reflow.rs` (WordWrapper, LineTruncator), as used by 8alpha-rust-mesh's mesh-top. 9 10## Tests 11 12`tests/paragraph.c`: wrapping with and without trimming, long words, truncation, alignment, 13scrolling, a block. The frames mesh-top draws with paragraphs are compared cell for cell with 14ratatui's in `@ajax/mesh-top-golden`.