Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
I want to ask, how to get a keyboard input in DOS.
I have tried many of interrupts, with various AH values, but nothing works.
Either it waits for a keystroke, or if a keystroke is present, it is not removed from the keyboard buffer.
I want to develop a simple game. Is there any way to get a keystroke directly?
Thanks for all ideas.