I prefer having the confirmation dialog as well. Though I would like to suppress it for some processes as can bedone with the setting “Ask before closing” in Terminal on macOS (see the screenshot below). When I open a Terminal window and run sleep 10, it will ask for confirmation first when I click the window’s close button before the ‘sleep’ process is done. But if I run screen sleep 10,
it does not ask for confirmation. The list only applies to the direct child processes of the login shell process. So if I run sh -c 'screen sleep 10; echo done', it still asks for confirmation.
_Originally posted by @Rinzwind in https://github.com/lxsang/PTerm/pull/54#discussion_r1308037134_