Commit 46113892 authored by Alexis Campailla's avatar Alexis Campailla
Browse files

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: https://github.com/nodejs/node/issues/5384

PR-URL: https://github.com/nodejs/node/pull/5776


Reviewed-By: default avatarcjihrig - Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarjasnell - James M Snell <jasnell@gmail.com>
parent f429fe1b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment