Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Crash Handling #31

Open
ndd7xv opened this issue Sep 11, 2022 · 0 comments
Open

Implement Crash Handling #31

ndd7xv opened this issue Sep 11, 2022 · 0 comments

Comments

@ndd7xv
Copy link
Owner

ndd7xv commented Sep 11, 2022

Background

If you run something like

kill <heh pid> # which you can probably get with $(ps -ef | grep heh | grep -v grep | awk '{print $2}')

heh will terminate and fail to save any progress or changes made. It will also remain with raw mode enabled, rendering the terminal session extremely difficult to use.

Task

When running the command mentioned above, heh should have some sort of graceful way of preventing data loss, or at least a way to alert the user and leave the terminal session usable. Doing the same thing for vim prints out

Vim: Caught deadly signal TERM
Vim: preserving files...
Vim: Finished.

For saving things, we could try using .swp files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant