Open whisperity opened 1 year ago
Oh THIS is an interesting one. Many thanks. :)
I think the termination protection while being in alt-screen is actually trivially implemented. This could be done as a first step.
The second one might be somewhat more complicated due to the fact that this can't be trivially implement platform independantly. The TE spawns some app (preferrably a shell) and then, if this app has spawned other apps that are still running during app termination attempt, then a warning popup could show up. hmm.... 🤔
konsole close confirm popup appears when the foreground process group is not the shell, so, e.g. on the normal screen attempting to close while the following is running elicits the popup:
sleep 9999
but not for the following:
sleep 9999 &
@christianparpart It would be a good idea if the keybind-based protected mode would also prevent the closing of the shell!
If someone quits a running ALT application (e.g.,
vim
) then they could lose unsaved changes and such.I used
vim
,mc
andaptitude
as "alternate mode" programs for this test.C-d
A-F4
Unfortunately I do not have the other terminal emulators at hand, and can't even install Alacritty (it's not in the official package sources), for example...