unbuffered nonblocking stdin, hopefully cross platform