mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-23 17:35:00 +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,7 +20,7 @@ fn main() {
|
||||
let mut siv = Cursive::new();
|
||||
|
||||
// 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")
|
||||
.button("Quit", |s| s.quit()));
|
||||
|
||||
@ -31,7 +31,7 @@ fn main() {
|
||||
|
||||
![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):
|
||||
|
Loading…
Reference in New Issue
Block a user