Update Readme with image

This commit is contained in:
Alexandre Bury 2015-05-24 14:07:30 -07:00
parent 3518fdf390
commit b3be2286dd

View File

@ -21,6 +21,7 @@ fn main() {
// Create a popup window with a "Ok" button that quits the application
siv.add_layer(Dialog::new(TextView::new("Hello world!"))
.title("Cursive")
.button("Quit", |s| s.quit()));
// Starts the event loop.
@ -28,6 +29,11 @@ fn main() {
}
```
![Cursive dialog example](https://raw.githubusercontent.com/Gyscos/Cursive/master/doc/cursive_example.png)
_(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):
* [menuconfig](http://en.wikipedia.org/wiki/Menuconfig#/media/File:Linux_x86_3.10.0-rc2_Kernel_Configuration.png)