Rust handle input for multiple variables in a single input line
I want to read input in rust like this C++ example:
rust: how to do “press [specific input] to start”
Oh hi, so, i’ve been looking to learn rust recently and since i don’t want to be stuck in “tutorial hell”, i’ve decided to create a little project to learn in more practical manners. This project is just a small text-based RPG game in the terminal, could help alot to understand user inputs, loops and etc. To begin with, i would like to create a title start screen, it shows the title and its the means to start the game by just pressing an input. Thus where my problem lies, i would like to know how i can bind the ENTER key to start the game, so the user would need to press enter to start the first chapter.