Read from terminal when enter is pressed, but do other stuff in the mean time...

Stefan Koch via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Thu Jul 13 09:26:06 PDT 2017


On Thursday, 13 July 2017 at 15:52:57 UTC, Dustmight wrote:
> How do I read in input from the terminal without sitting there 
> waiting for it? I've got code I want to run while there's no 
> input, and then code I want to act on input when it comes in. 
> How do I do both these things?

You have to ask the OS for this.
All of this is platform specific functionality.
check your operating-system-api
search terms are unbufferd i/o
and event-loop


More information about the Digitalmars-d-learn mailing list