getting console input key stroke without blocking

From: z. f. (zigi_at_info-scopeREMSPAM.co.il)
Date: 06/13/04


Date: Sun, 13 Jun 2004 11:37:59 +0200

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.



Relevant Pages

  • Re: How to detect when a console child process is waiting for input?
    ... the console child process is waiting for input, so that I can give them ... WaitForInputIdlefunction which will always return true with a console ... Create a named event to check in your monitoring program. ... you'll need to redirect that call ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Cant send a fax
    ... I can hear the fax noises from the ... But it seems as though the fax console dosen't reply. ... beeps like a call waiting beep. ... I know it's not call waiting because I don't ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: How to detect when a console child process is waiting for input?
    ... >>>the console child process is waiting for input, so that I can give them ... >> When a console is waiting for input, it is generally in ReadConsoleW() ... you'll need to redirect that call ...
    (microsoft.public.win32.programmer.kernel)
  • RE: 2.6.9: serial_core: uart_open
    ... Thanks for the suggestion of setting the modem termio to a copy of the xterm ... unresponsive at the console and to telnet sessions. ... Note that this test is being done through an xterm session. ... clear the local flag, then open, waiting for modem control. ...
    (Linux-Kernel)
  • Re: how to "wait for any key"
    ... Alexander Malkis wrote: ... # What is the most portable way of "waiting for any key", ... # who runs a program from the console should observe the following: ... ESC or CTRL-C can break your program. ...
    (comp.lang.c)