igir icon indicating copy to clipboard operation
igir copied to clipboard

Cancelling sorting using Ctrl-C does not restore hidden cursor

Open mainrs opened this issue 11 months ago • 1 comments

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

mainrs avatar Jan 27 '25 17:01 mainrs

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!

emmercm avatar Feb 13 '25 22:02 emmercm

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.

emmercm avatar Jun 22 '25 19:06 emmercm

: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.

github-actions[bot] avatar Jul 23 '25 02:07 github-actions[bot]