P
PHead
Ive searched usenet before, with nothing, so Ill go ahead and ask...
Does anyone know how to read from the keyboard buffer from a console
app, *without* blocking? I know about the PInvoke method and
SetConsoleMode to char, which I am doing, but there is still a problem.
What I need to do is immediately exit the code if nothing is in the
buffer. Peek-ing will work the first time only. After that, it blocks.
If this can't be done, then Im pretty much forced into writing my own
console-type of output, which I dont think Ive ever seen such code
written before. So, I guess its a 2-part question - *real* non
blocking reads or a .NET or COM custom console with that ability?
Thanks in advance
Does anyone know how to read from the keyboard buffer from a console
app, *without* blocking? I know about the PInvoke method and
SetConsoleMode to char, which I am doing, but there is still a problem.
What I need to do is immediately exit the code if nothing is in the
buffer. Peek-ing will work the first time only. After that, it blocks.
If this can't be done, then Im pretty much forced into writing my own
console-type of output, which I dont think Ive ever seen such code
written before. So, I guess its a 2-part question - *real* non
blocking reads or a .NET or COM custom console with that ability?
Thanks in advance