I am currently trying to create a console menu system which allows users to use the arrow keys on the keyboard to select up and down. However, when this menu displays, I want the console to be completely clear so that only the menu can be seen and afterwards show the console as it was before the menu appeared.
Is there a way to save this output or achieve a similar effect such that the console will be unmodified after the user has made a choice?
Can't read stdout in Windows so it's not possible to save the console output, create a new console or write a wrapper for your program which prints and saves the text in a file