mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-14 13:13:08 +00:00
Fix broken example in readme to use ncurses
This commit is contained in:
parent
6557714b46
commit
86a023f9f2
@ -37,7 +37,7 @@ use cursive::views::{Dialog, TextView};
|
|||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
// Creates the cursive root - required for every application.
|
// Creates the cursive root - required for every application.
|
||||||
let mut siv = Cursive::new();
|
let mut siv = Cursive::ncurses();
|
||||||
|
|
||||||
// Creates a dialog with a single "Quit" button
|
// Creates a dialog with a single "Quit" button
|
||||||
siv.add_layer(Dialog::around(TextView::new("Hello Dialog!"))
|
siv.add_layer(Dialog::around(TextView::new("Hello Dialog!"))
|
||||||
|
Loading…
Reference in New Issue
Block a user