Cancelling sorting using Ctrl-C does not restore hidden cursor
Paste the command
npx --yes mainrs/igir move zip test clean report \
--dat "./dats/*" \
--dat "./custom/*.dat" \
--input inputs \
-- input outputs \
--output outputs
Describe the bug
While pressing Ctrl-C during the scanning operation, the CLI closes, but the hidden cursor is not made visible again. This probably requires a signal handler registered.
Expected behavior
The cursor is visible again after cancelling the CLI.
Debug logs
None.
DAT(s) used
No-Intro
igir version
3.0.1
Node.js version
22.12
Operating system
Linux
Additional context
No response
This is one I've really struggled with--sometimes it happens, sometimes it doesn't, and I swore I have the right signal handlers as suggested. Here:
https://github.com/emmercm/igir/blob/c391c2142e19e19f76b1b483342b4d57c1483b16/index.ts#L29-L34
I'd love help debugging this one from anyone who has time!
https://github.com/emmercm/igir/pull/1579 likely meaningfully affected this issue. I'm going to close for now, but please let me know if the problem persists.
:lock: Inactive issue lock
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Comment generated by the GitHub Lock Issues workflow.