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
Post a Comment