Skip Navigation

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?

10
10 comments
You've viewed 10 comments.