getchar()

Hello,

I need to use some function in the thread like getchar(), but this
function waits for an input from keyboard. Is there any way to do
something like that, but without waiting for input. If key was not
pressed so function checks and returns imediatly with return code.
Actualy I want to do that my thread exit on some key was pressed, but I
don’t need to wait.

Best regards,
Darius

tcischars()


Darius wrote:

Hello,

I need to use some function in the thread like getchar(), but this
function waits for an input from keyboard. Is there any way to do
something like that, but without waiting for input. If key was not
pressed so function checks and returns imediatly with return code.
Actualy I want to do that my thread exit on some key was pressed, but I
don’t need to wait.

Best regards,
Darius