mirror of
https://github.com/FliegendeWurst/cursive.git
synced 2024-11-09 10:50:40 +00:00
Moved example to separate directory
And add it to Cargo.toml
This commit is contained in:
parent
e17ca97136
commit
a8c8855831
@ -3,9 +3,6 @@ name = "cursive"
|
||||
version = "0.1.0"
|
||||
authors = ["Alexandre Bury <alexandre.bury@gmail.com>"]
|
||||
|
||||
[[bin]]
|
||||
name = "cursive-example"
|
||||
|
||||
[lib]
|
||||
name = "cursive"
|
||||
|
||||
@ -14,3 +11,6 @@ name = "cursive"
|
||||
[dependencies.ncurses]
|
||||
git = "https://github.com/jeaye/ncurses-rs"
|
||||
|
||||
[[example]]
|
||||
name = "hello_world"
|
||||
path = "examples/hello_world.rs"
|
||||
|
@ -11,9 +11,5 @@ fn main() {
|
||||
|
||||
siv.add_layer(TextView::new("Hello World!\nPress q to quit the application."));
|
||||
|
||||
siv.add_global_callback('a' as i32, |s, _| {
|
||||
//
|
||||
});
|
||||
|
||||
siv.run();
|
||||
}
|
Loading…
Reference in New Issue
Block a user