promptui
promptui copied to clipboard
fix: end readline listener immediately if interrupt character is received
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):
after:
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!