-
-
Notifications
You must be signed in to change notification settings - Fork 35k
Closed
Labels
readlineIssues and PRs related to the built-in readline module.Issues and PRs related to the built-in readline module.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
- Version: v12.13.0
- Platform: 64-bit (Windows)
- Subsystem:
const readline = require("readline");
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
setTimeout(() => {
rl.close();
}, 1000);
setInterval(() => {
console.log('test')
}, 1000);win10 output(empty)
linux output
test
test
...const readline = require("readline");
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout
});
setTimeout(() => {
rl.close(); // process.stdin.isRaw =false
process.stdin.setRawMode(true); //stop at here
console.log("asd");
}, 1000);this code will block without any error
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
readlineIssues and PRs related to the built-in readline module.Issues and PRs related to the built-in readline module.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.