c# - How to Disable the Ability to Type in a Console Application? -


this question has answer here:

i'm attempting make snake clone in vb2015 using console template. i'm wondering if can disable ability type can finish it. thank you.

taken hans passant's answer here:

while (!done) {     while (console.keyavailable) console.readkey(true);     consolekeyinfo key = console.readkey(true);     // etc.. } 

Comments

Popular posts from this blog

java - pagination of xlsx file to XSSFworkbook using apache POI -

Unlimited choices in BASH case statement -

apache - How do I stop my index.php being run twice for every user -