Problems with getting .step() to work #643
Replies: 1 comment 1 reply
-
Hi! First, note that using this Now, the details. Conceptually, a Once you actually want to start interacting with a terminal (receiving input and printing stuff) you start what you could call a "session" - this is the To get this runner, you can indeed use I agree that this should all be better documented. Right now there's not many examples about it, mainly because it's a rather niche use. |
Beta Was this translation helpful? Give feedback.
-
Hi there,
I admit I am relatively new to all this (programming in general) so sorry if I missed on something very basic.
I tried to run different examples that make use of .step() and, whether it is examples I took from the web or my own, I always encountered
"method not found in 'Cursive' " at compile time (cursive = 0.16.0 or higher). With cursive = 0.15.0 it still worked.
After some reading of the Cursive documentation, I realised that by adding this to my code, I again have access to the siv.step() function and examples compile ok.
let mut siv = cursive::default().into_runner();
Is that the correct way of doing this? Maybe there is a "minimal working example" for usage of ".step()" that works with the latest Cursive version?
Thank you very much in advance!
Pascal
Beta Was this translation helpful? Give feedback.
All reactions