notcurses
notcurses copied to clipboard
terminal isn't restored on windows on fatal signal
If we crash or press Ctrl+c on Windows, we don't restore the terminal. Most obviously, mouse clicks still result in input sequences. We need catch these signals and restore the terminal with notcurses_stop_minimal()
, just as we do on UNIX.