Input without stopping program flow?

I was wondering if it was possible to get console input without stopping the program flow, i dont really know how to explain this but like with cin doesnt it wait until the user enters in something then it proceeds with the program? I want the program to constantly be running and once input is entered it does something with it.
Im on OS X if it makes any difference
Thanks in advance rrrybody :)

EDIT: Non-blocking input is what i ment :P
Last edited on

If you detect that the key is pressed, turn on blocking, echo, line-buffered input, read it, and turn it all back off for the next poll().

Good luck!
Topic archived. No new replies allowed.