lxsang / PTerm

MIT License
35 stars 8 forks source link

Enhance confirmation dialog behavior based on current running child process of the pty #55

Open lxsang opened 1 year ago

lxsang commented 1 year ago

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.

Terminal Setting "Ask Before Closing"

_Originally posted by @Rinzwind in https://github.com/lxsang/PTerm/pull/54#discussion_r1308037134_