cursive/examples/text_area.rs
Alexandre Bury a4ca7bbf1e Rustfmt
2017-10-12 16:43:59 -07:00

20 lines
396 B
Rust

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