cursive 0.0.2

A TUI library based on ncurses-rs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
extern crate cursive;

use cursive::Cursive;
use cursive::view::{Dialog, TextView};

fn main() {
    let mut siv = Cursive::new();
    siv.load_theme("assets/style.toml");

    siv.add_layer(Dialog::new(TextView::new("This application uses a custom theme!"))
                      .title("Themed dialog")
                      .button("Quit", |s| s.quit()));

    siv.run();
}