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

fix: end readline listener immediately if interrupt character is received #220

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

Conversation

charliecruzan-stripe
Copy link

this is to fix a bug with select prompts where the prompt is sometimes still flushed to output even though the user has provided the interrupt key (this can cause confusion and looks not-so-pretty)

before (happens inconsistently):

image

after:

image

There might be use cases where you don't want to return immediately in this case, so let me know if that's the case!

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