How do I test for any key without stopping program flow?
c = getc(stdin); halts and waits for enter key.
I wan't to keep going until a key is hit.
windows app using nospace std
The next thought would be to call a BIOS or DOS keyboard interupt function. eg: call interupt 21h with AH = 0Bh and check the value of AL upon return. (AL = FFh if character available). Then you must read the character or the next call to the function will, and rightly so, tell you that there STILL is a character in the buffer.
Thanks,
I'll try this.
20 years of improvments and 'high level' languages
and we still have to solve problems in assembler!
Hope you had good Xmas.
'If its hard to write it should be hard to read'
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.