Rust Programming
Binette
•
3mo ago
•
100%
Stdin takes in values from before my code even starts. How do I prevent this?
For context, I am using the libraries bevy and print_typewriter.
I noticed that before the program even starts, I am able to type in characters. This is bad, since when I ask for the user's input, the previous characters are included inside of it.
How do I make sure that only the user's input after the program starts, and after I print a question gets in?
Comments 10