You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AlexBedley opened this issue
Aug 3, 2016
· 3 comments
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.readlineIssues and PRs related to the built-in readline module.windowsIssues and PRs related to the Windows platform.
Problem:readline will echo the first line it receives (but not any subsequent line) Minimum Code to Reproduce:
// test.jsconstreadline=require('readline');constrl=readline.createInterface({input: process.stdin,output: process.stdout});rl.question('This is a question?',(answer)=>{rl.close();process.exit(0);});
Actual Output:
AlexBedley ~/dev/playground
λ node test.js
This is a question?yes
yes
Expected Output:
AlexBedley ~/dev/playground
λ node test.js
This is a question?yes
Notes: This also happens to me when I run the node repl (via node on the command line). The first line is always echoed but subsequent lines are not. This happens to me on cmd and also msysgit. My Windows coworkers can reproduce this (also 4.2.1) although my coworker that uses a Mac can't. When I downgrade my node to 0.10.36 the issue goes away.
The text was updated successfully, but these errors were encountered:
duplicateIssues and PRs that are duplicates of other issues or PRs.readlineIssues and PRs related to the built-in readline module.windowsIssues and PRs related to the Windows platform.
Problem:
readline
will echo the first line it receives (but not any subsequent line)Minimum Code to Reproduce:
Actual Output:
Expected Output:
Notes: This also happens to me when I run the node repl (via
node
on the command line). The first line is always echoed but subsequent lines are not. This happens to me on cmd and also msysgit. My Windows coworkers can reproduce this (also 4.2.1) although my coworker that uses a Mac can't. When I downgrade my node to 0.10.36 the issue goes away.The text was updated successfully, but these errors were encountered: