PTerm icon indicating copy to clipboard operation
PTerm copied to clipboard

Closing terminal tab in a window group doesn’t send SIGHUP to the process

Open Rinzwind opened this issue 3 years ago • 2 comments

When closing the tab for a Terminal window that has been put into a window group (use “Create window group” in the window’s window menu) (1.png), the process doesn’t seem to be sent SIGHUP as it doesn’t exit (2.png).

1.png: 1

2.png: 2

Rinzwind avatar Sep 29 '22 20:09 Rinzwind

It looks like TerminalEmulator has no way to know whether a window is moved out of a tab group or a window is closed due to the associated tab closed, in both cases, GroupWindowMorph executes the method #removeWindow: without passing any event to TerminalEmulator to differentiate the two cases.

~~Furthermore, when a GroupWindowMorph is closed, there is no event passing down to the windows in the tab group.~~

I don't see a consistent way to handle these ~~three~~ cases...

lxsang avatar Dec 12 '22 12:12 lxsang

It’s not clear to me either. I’ve reported some issues with window groups in Pharo 11: https://github.com/pharo-project/pharo/issues/12133 and https://github.com/pharo-project/pharo/issues/12134.

Rinzwind avatar Dec 20 '22 00:12 Rinzwind