usmanyunusov / nanospinner

🌀 The simplest and tiniest terminal spinner for Node.js
https://npm.im/nanospinner
ISC License
183 stars 15 forks source link

Not restore cursor when the program exits abnormally #24

Open kricsleo opened 9 months ago

kricsleo commented 9 months ago

When exiting in the loading state (e.g. ctrl + c), the cursor is still hidden.

Do you think it's better to listen to SIGINT to restore the cursor when exit?

(Willing to contribute a PR for this. Also if there is anything inappropriate please point it out directly :)