In fact that borderline looks like a bug. Why would 'read()' return null
from within the "readable" event?

On Wednesday, March 20, 2013, Ben Noordhuis wrote:

> In doc/api/process.markdown:
>
> > @@ -93,6 +93,21 @@ that writes to them are usually blocking.  They are blocking in the case
> >  that they refer to regular files or TTY file descriptors. In the case they
> >  refer to pipes, they are non-blocking like other streams.
> >
> > +The preferred way to check if Node is being run in a TTY context is to check
>
> Right. A little far-fetched though, don't you think?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/joyent/node/pull/5082/files#r3449634>
> .
>