-
Notifications
You must be signed in to change notification settings - Fork 91
Closed
Milestone
Description
Brought up by @saitoha in #307.
If we disabled the cursor on startup (i.e. --polite off or auto), and the user issues a SIGINT (ctrl-c), we currently wait until chafa can handle the interrupt flag and reenable the cursor on exit. However, if it's stuck on CPU or I/O, this can take a while, and if the user gets impatient and hits ctrl-c again, the program will abort without reenabling the cursor.
Even if there's not a lot we can do in a signal handler, we can still do a write(). We could thus pregenerate the cleanup string to re-enable the cursor and possibly other settings and write it immediately when the signal arrives and avoid this annoyance.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels