cursive 0.0.1

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::{TextView,Dialog};

fn main() {
    let mut siv = Cursive::new();

    // Creates a dialog with a single "Quit" button
    siv.add_layer(Dialog::new(TextView::new("Hello Dialog!"))
                  .title("Cursive")
                  .button("Quit", |s| s.quit()));

    siv.run();
}