mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-13 20:53:07 +00:00
Update readme example.
The example spelled "Hello world", but the image said "Hello Dialog".
This commit is contained in:
parent
89221fae55
commit
7fb1108ff8
@ -20,8 +20,8 @@ fn main() {
|
|||||||
let mut siv = Cursive::new();
|
let mut siv = Cursive::new();
|
||||||
|
|
||||||
// Create a popup window with a "Ok" button that quits the application
|
// Create a popup window with a "Ok" button that quits the application
|
||||||
siv.add_layer(Dialog::new(TextView::new("Hello world!"))
|
siv.add_layer(Dialog::new(TextView::new("Hello Dialog!"))
|
||||||
.title("Cursive")
|
.title("Cursive")
|
||||||
.button("Quit", |s| s.quit()));
|
.button("Quit", |s| s.quit()));
|
||||||
|
|
||||||
// Starts the event loop.
|
// Starts the event loop.
|
||||||
@ -31,7 +31,7 @@ fn main() {
|
|||||||
|
|
||||||
![Cursive dialog example](https://raw.githubusercontent.com/Gyscos/Cursive/master/doc/cursive_example.png)
|
![Cursive dialog example](https://raw.githubusercontent.com/Gyscos/Cursive/master/doc/cursive_example.png)
|
||||||
|
|
||||||
_(Colors may depend on your terminal configuration)_
|
_(Colors may depend on your terminal configuration.)_
|
||||||
|
|
||||||
|
|
||||||
The goal is to be flexible enough, so that recreating these kind of tools would be - relatively - easy (at least on the layout front):
|
The goal is to be flexible enough, so that recreating these kind of tools would be - relatively - easy (at least on the layout front):
|
||||||
|
Loading…
Reference in New Issue
Block a user