Sometimes when working within a terminal, e.g. when using Vim, I accidentally close the window without saving my work properly.gnome-terminal will show a dialog before closing a terminal window that has a subprocess running besides the shell. I'd like to have a similar feature with urxvt; it would be enough if the window simply refuses to close whenever there are subprocesses running.Is there a setting (or maybe a Perl plugin) addressing this?
Prevent urxvt window from closing when a child process is running
rxvt