// BUG: for some reason, NDELAY also affects stdout (1) when used on stdin (0).
// this is because both go to /dev/tty by default!
{
int origflags = fcntl (sys.outfd, F_GETFL, 0);
// BUG: for some reason, NDELAY also affects stdout (1) when used on stdin (0).
// this is because both go to /dev/tty by default!
{
int origflags = fcntl (sys.outfd, F_GETFL, 0);