I've just started learning C++ and just for fun and practice, I'm making a very, very simple text based game. The player is asked to choose from several actions, each represented by a number which the player inputs to perform the desired action. Anyways, I have two questions which I have not been able to find answers to.
First, is there a way to make it so that when new text is generated, the console scrolls down so that the new text is at the top of the console, rather than below everything else? I think it would make my program look much cleaner that way.
Second, after the player chooses an action and presses one of the number keys, they must press "enter" before the program recognizes the input. How can I change that? I would like to do it in such a way that the program automatically registers the keystroke without requiring further input.
I hope that was clear enough and you can understand what it is I'm trying to accomplish.
Thank you!