1
submitted 4 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
1 points (100.0% liked)

Rust Programming

8190 readers
20 users here now

founded 5 years ago
MODERATORS