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

Detect native stream keypress events and bail. #267

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

STRML
Copy link

@STRML STRML commented Nov 3, 2016

This is because blessed is running its own version of
readline's emitKeypressEvents() to handle mouse escape
codes. Both implementations can be added to the same stream,
resulting in double keypress events.

Refusing to add the handler if another is present does not
fix the mouse escape codes, but it will warn and fix the
double input.

See #92 and nodejs/node#9447.

This is because blessed is running its own version of
readline's `emitKeypressEvents()` to handle mouse escape
codes. Both implementations can be added to the same stream,
resulting in double keypress events.

Refusing to add the handler if another is present does not
fix the mouse escape codes, but it will warn and fix the
double input.
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

Successfully merging this pull request may close these issues.

1 participant