Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I stop keypress emit when I use readline? #26

Open
realdennis opened this issue Mar 23, 2018 · 1 comment
Open

How can I stop keypress emit when I use readline? #26

realdennis opened this issue Mar 23, 2018 · 1 comment

Comments

@realdennis
Copy link

Hey, I use keypress to detect user's key stroke to control my app,
but in some part of my application, I need user input some words using readline,
the stdin have been weird,
Every keypress characters are repeated twice,

So, How to close keypress emit when I use readline?

@realdennis
Copy link
Author

My temporary solution is process.stdin.removeAllListeners()before readline.createInterface, Is there any good solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant