cursive/examples/text_area.rs
Alexandre Bury b38995b906 Refactor BoxView
Add `Boxable` trait.
2016-08-03 21:55:41 -07:00

18 lines
352 B
Rust

extern crate cursive;
use cursive::prelude::*;
fn main() {
let mut siv = Cursive::new();
siv.add_layer(Dialog::empty()
.title("Describe your issue")
.padding((1, 1, 1, 0))
.content(TextArea::new()
.with_id("text")
.fixed_size((30, 5)))
.button("Ok", Cursive::quit));
siv.run();
}