japanoise / emsys

ersatz-emacs text editor
MIT License
3 stars 2 forks source link

Handle non-graceful exit signals #37

Open japanoise opened 1 month ago

japanoise commented 1 month ago

Emsys should clean up its resources and return the terminal to its original state in the event it crashes. We can trap sigsegv etc. and call the functionality to end the terminal before exiting: https://en.wikipedia.org/wiki/C_signal_handling