Open lastunicorn opened 6 years ago
Before reading the user's input, clear the console buffer.
If it is not cleared, the user may type keys before the menu is displayed. The menu may execute some item that the user didn't intended.
This code might help:
while (Console.KeyAvailable) Console.ReadKey(true);
Before reading the user's input, clear the console buffer.
If it is not cleared, the user may type keys before the menu is displayed. The menu may execute some item that the user didn't intended.
This code might help: