0
submitted 10 months ago by Binette@lemmy.ml to c/rust@lemmy.ml

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?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here
this post was submitted on 23 Jul 2024
0 points (50.0% liked)

Rust Programming

8836 readers
9 users here now

founded 6 years ago
MODERATORS