mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-24 01:46:31 +00:00
16 lines
366 B
Rust
16 lines
366 B
Rust
|
fn main() {
|
||
|
let mut siv = cursive::default();
|
||
|
|
||
|
siv.add_layer(
|
||
|
cursive::views::Dialog::around(
|
||
|
cursive::views::FixedLayout::new().child(
|
||
|
cursive::Rect::from_size((0, 0), (10, 1)),
|
||
|
cursive::views::TextView::new("abc"),
|
||
|
),
|
||
|
)
|
||
|
.button("Quit", |s| s.quit()),
|
||
|
);
|
||
|
|
||
|
siv.run();
|
||
|
}
|