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:
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