mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-08 18:30:40 +00:00
19 lines
378 B
Rust
19 lines
378 B
Rust
extern crate cursive;
|
|
|
|
use cursive::Cursive;
|
|
use cursive::views::{Dialog, TextArea};
|
|
use cursive::traits::*;
|
|
|
|
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();
|
|
}
|