cursive/examples/text_area.rs

20 lines
396 B
Rust
Raw Normal View History

2016-08-02 07:32:16 +00:00
extern crate cursive;
use cursive::Cursive;
use cursive::traits::*;
2017-10-12 23:38:55 +00:00
use cursive::views::{Dialog, TextArea};
2016-08-02 07:32:16 +00:00
fn main() {
let mut siv = Cursive::new();
2017-10-12 23:38:55 +00:00
siv.add_layer(
Dialog::new()
.title("Describe your issue")
.padding((1, 1, 1, 0))
.content(TextArea::new().with_id("text"))
.button("Ok", Cursive::quit),
);
2016-08-02 07:32:16 +00:00
siv.run();
}