zwilias / elm-json

Install, upgrade and uninstall Elm dependencies
MIT License
182 stars 9 forks source link

Terminal cursor disappears if ctrl+c during `elm-json upgrade` #29

Closed lydell closed 4 years ago

lydell commented 4 years ago
  1. Run elm-json upgrade.
  2. When asked “Should I make these changes? [Y/n]”, press ctrl+c.

Result: The command is exited as expected, but the terminal cursor is now gone. Expected: The command is exited and the cursor shows as usual.

Possible fix: Listen to kill signals and reset terminal ANSI stuff.