-
Notifications
You must be signed in to change notification settings - Fork 92
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
[BUG]: SIGINT during an stdio.prompt selection list hides terminal cursor #134
Comments
I cannot reproduce this on the Windows Terminal (which is what I assume you are referring to as Windows 11 terminal). Haven't tested on Git Bash/CYGWin/MinGW terminals though. |
This bug happens on both Git Bash and the default Windows terminal program/command prompt. |
Any specific reproducible code in that case? Like I said, I've tried some code which would allegedly cause this, but with no luck. |
local stdio = require("@lune/stdio")
stdio.prompt("confirm", `Please confirm`) This seems to reproduce the issue with 100% consistency. I'm on both an unmodified Windows command prompt shell and Git Bash running MINGW64. |
Will check it out later today, although it could likely be an issue with the upstream library we use for prompts, dialoguer. |
I was able to recently reproduce this! For some reason, dialoguer does not handle graceful exits via Issue console-rs/dialoguer#294 is relevant, and the workaround on lune's end would be to manually handle emitting the ANSI sequence upon |
When pressing Control-C on either Git Bash or Windows 11 terminal during a select or multiselect prompt via
stdio.prompt
, the terminal's cursor is hidden. This persists even throughclear
s and requires you to start up a new terminal window.The text was updated successfully, but these errors were encountered: