urushi 0.1.1

Composable styling, components, and terminal rendering for Rust CLIs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Plain-text measurement and wrapping.
//!
//! Everything here works on [`PrintableText`] and [`PrintableLines`]: text
//! that carries no escape sequences and no cursor movement. Raw ANSI is outside
//! this plain-text model.

mod printable;
mod styled;
mod tab;
pub(crate) mod width;
mod wrap;

pub use printable::{Grapheme, PrintableLines, PrintableText};
pub(crate) use styled::StyledTextGrapheme;
pub use styled::{StyledText, StyledTextError, TextSpan};
pub use tab::{InvalidTabMarker, TabPolicy};
pub(crate) use wrap::{wrap_styled_lines, wrap_text, wrapped_line_count};