Re: Read from stdin without blocking

2015-01-13 Thread Adam D. Ruppe via Digitalmars-d-learn
The operating system does line buffering, so you'll need to turn that off. The function is tcssetattr() on Posix and SetConsoleMode on Windows. My terminal.d does this in struct ctors and dtors: https://github.com/adamdruppe/arsd/blob/master/terminal.d example usage:

Read from stdin without blocking

2015-01-13 Thread Benjamin Thaut via Digitalmars-d-learn
I want to read all input from stdin without blocking. That means I simply want to read the remaining input from stdin. All ways I tried so far always end up in me waiting for the user to enter additional input, which is not what I want. I tried around a lot with D's files / streams but