1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//! ANSI text widget.
//!
//! This widget displays text styled using [ANSI escape codes], commonly used to style terminal text.
//!
//! [ANSI escape codes]: https://en.wikipedia.org/wiki/ANSI_escape_code
//!
//! ```
//! # let _scope = zng::APP.defaults(); let _ =
//! zng::ansi_text::AnsiText! {
//!     txt = "GREEN&BOLD";
//! }
//! # ;
//! ```
//!
//! The example above renders <code style="color:green;font-weight:bold;">GREEN&BOLD</code>.
//!
//! # Full API
//!
//! See [`zng_wgt_ansi_text`] for the full widget API.

pub use zng_wgt_ansi_text::{
    AnsiColor, AnsiStyle, AnsiText, AnsiTextParser, AnsiTxt, AnsiWeight, LineFnArgs, PageFnArgs, PanelFnArgs, TextFnArgs,
};