-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
Input from TTY is strange #2504
Copy link
Copy link
Closed
Labels
readlineIssues and PRs related to the built-in readline module.Issues and PRs related to the built-in readline module.streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Metadata
Metadata
Assignees
Labels
readlineIssues and PRs related to the built-in readline module.Issues and PRs related to the built-in readline module.streamIssues and PRs related to the stream subsystem.Issues and PRs related to the stream subsystem.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
I tried read from STDIN by
fs.readSyncthat is givenprocess.stdin.fd.For example:
In v2.3.1-, no problem:
In v2.3.2+, first line is ignored, and second line is accepted:
This problem occurs in only Windows + iojs v2.3.2+.
I don't use
process.stdin.fdin non-Win becausefs.readSynccan't read it.Therefore,
process.stdinof v2.3.2+ might have problem. (notfs.readSync)