diff --git a/doc/tutorial_1.md b/doc/tutorial_1.md index 99c4d59..06f20e7 100644 --- a/doc/tutorial_1.md +++ b/doc/tutorial_1.md @@ -96,7 +96,7 @@ leaving the application (you'll have to press to kill it). ## Interactivity Let's first add a way to stop the application. We want to quit when the user -presses the letter ``. +presses the letter `q`. Cursive sends an event for every user input ; most of these are just ignored and have no effect. The `Cursive` root has a [`add_global_callback`] method to @@ -127,7 +127,7 @@ fn main() { } ``` -As expected, running it show no visible change, but hitting the `` key at +As expected, running it show no visible change, but hitting the `q` key at least closes the application. [`add_global_callback`]: http://gyscos.github.io/Cursive/cursive/struct.Cursive.html#method.add_global_callback @@ -175,3 +175,5 @@ fn main() { [`TextView`]: http://gyscos.github.io/Cursive/cursive/views/struct.TextView.html [`StackView`]: http://gyscos.github.io/Cursive/cursive/views/struct.StackView.html [`Cursive::add_layer`]: http://gyscos.github.io/Cursive/cursive/struct.Cursive.html#method.add_layer + +Next: [Starting with Cursive (2/3)](./tutorial_2.md) diff --git a/doc/tutorial_2.md b/doc/tutorial_2.md index a2334ed..d44f95e 100644 --- a/doc/tutorial_2.md +++ b/doc/tutorial_2.md @@ -213,3 +213,5 @@ Your code should now look like the one at the top of this guide. As you've seen, the `Dialog` view is a nice way to present a `TextView`, but it works with any other content. Actually, most layers you'll add will start with a `Dialog` wrapping some other view. + +Next: [Starting with Cursive (3/3)](./tutorial_3.md)