implement non blocking reads on stdin