cursive 0.20.0

A TUI (Text User Interface) library focused on ease-of-use.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn main() {
    // Start with some text content that includes ANSI codes.
    // Often this could be the output of another command meant for humans.
    let content = include_str!("text_with_ansi_codes.txt");

    // Parse the content as ANSI-decorated text.
    let styled = cursive::utils::markup::ansi::parse(content);

    // Just give this to `TextView`
    let text_view = cursive::views::TextView::new(styled);

    // And make a minimal app around that.
    let mut siv = cursive::default();
    siv.add_layer(text_view);
    siv.run();
}