Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.readlineIssues and PRs related to the built-in readline module.Issues and PRs related to the built-in readline module.
Description
- Version: 6.0.0
- Platform: osx 10.11.4,
uname -a: 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64 - Subsystem: readline.emitKeypressEvents
process.stdin does not emit keypress after readline.emitKeypressEvents(process.stdin), but does when a readline interface created.
constreadline=require('readline')// const rl = readline.createInterface({// input: process.stdin,// output: process.stdout// })readline.emitKeypressEvents(process.stdin)process.stdin.on('keypress',()=>{process.stdout.write('.')})What happens: On keypress, event handler is not called. If a readline interface is created, the event handler is called.
Expected: stdin to start emitting keypress-events.
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.readlineIssues and PRs related to the built-in readline module.Issues and PRs related to the built-in readline module.