mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-24 01:46:31 +00:00
17 lines
370 B
Rust
17 lines
370 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(BoxView::fixed_size((30, 5),
|
||
|
TextArea::new().with_id("text")))
|
||
|
.button("Ok", Cursive::quit));
|
||
|
|
||
|
siv.run();
|
||
|
}
|