Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tty: don't read from console stream upon creation
The tty.ReadStream constructor initializes this as a socket, which causes a read to be initiated. Even though during stdin initalization we call readStop shortly after, the read operation can consume keypress events from the system buffers. Fixes: nodejs#5384 PR-URL: nodejs#5776 Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com> Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>
- Loading branch information