The program should ask for confirmation to close a window or tab while a process is running, something that would be useful to avoid accidentally closing a terminal that has Midnight Commander open or an SSH session. Looking in the mate-terminal source code (which has this functionality) I discovered that it calls the function terminal_screen_has_foreground_process[1] in confirm_close_window_or_tab[2]. [1]: http://git.mate-desktop.org/mate-terminal/tree/src/terminal-screen.c#n2271 [2]: http://git.mate-desktop.org/mate-terminal/tree/src/terminal-window.c#n3503
Hi, this is a good idea indeed, thanks. I will look into it.
Igor referenced this bugreport in commit 17dafe40dc89f0e69b774f4af9ef8e121a7acdb1 Request confirmation when closing the window while a process is running https://git.xfce.org/apps/xfce4-terminal/commit?id=17dafe40dc89f0e69b774f4af9ef8e121a7acdb1
Implemented.