promptui icon indicating copy to clipboard operation
promptui copied to clipboard

fix: end readline listener immediately if interrupt character is received

Open charliecruzan-stripe opened this issue 1 year ago • 0 comments

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!

charliecruzan-stripe avatar Mar 09 '23 01:03 charliecruzan-stripe