getting console input key stroke without blocking

  • Thread starter Thread starter z. f.
  • Start date Start date
Z

z. f.

Hi,

i'm having this console application that needs to know if a key storke is
available, but if not - continue what it's doing without waiting for the
input.
the functions Read block and also peek() [!] blocks too.

TIA, .zigi.
 
Probably a thread checking for input will be the answer. Atleast that is
similiar to how we used to do it in Turbo C way back in DOS days. Though
thread wasn't an option back then .. so it was slightly more complicated,
but a thread should suffice now.

- Sahil Malik
Independent Consultant
You can reach me thru my blog - http://dotnetjunkies.com/WebLog/sahilmalik/
 
Back
Top