cursive-multiplex 0.2.0

A tmux like multiplexer for gyscos/cursive views
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate cursive;

use cursive::views::{BoxView, Panel, TextView};
use cursive::Cursive;
use cursive_multiplex::Mux;

fn main() {
    let mut siv = Cursive::default();
    let (mut mux, root) = Mux::new(TextView::new("Root".to_string()));
    let mut view = BoxView::with_fixed_size((42, 11), Panel::new(TextView::new("Fixed")));
    view.set_squishable(false);
    let _id = mux.add_below(view, root).expect("Fixed failed");

    siv.add_fullscreen_layer(mux);
    siv.run();
}