Swordfish90 / cool-retro-term

A good looking terminal emulator which mimics the old cathode display...
22.32k stars 851 forks source link

Application doesn't quit cleanly on MacOS while running certain commands #508

Open adammathes opened 5 years ago

adammathes commented 5 years ago

On MacOS 10.14.2, running release CRT 1.1.1, closing the last window or explicitly quitting the application will not work and leave CRT in an "application is not responding" state, requiring "Force Stop" to end it.

Reproducible for me -

install cmatrix with something like brew install cmatrix (though this works with some long running commands but not others, I haven't quite figured out why)

Launch CRT

run cmatrix

quit CRT

Application stops responding

neo-anderson commented 5 years ago

For me, it stops responding even if nothing is running.

Launch CRT

Quit CRT

Stops responding

kimslawson commented 2 years ago

For me, it stops responding even if nothing is running.

Launch CRT

Quit CRT

Stops responding

+1 for me here, 1.2.0-beta1 on Monterey 12.5.1 running on Apple Silicon.

neo-anderson commented 1 year ago

A workaround is to press ctrl+d to terminate the last shell and CRT will quit.

iconmaster commented 1 year ago

A workaround is to press ctrl+d to terminate the last shell and CRT will quit.

This helped me find a solution! I implemented an Automator service with the following AppleScript, and assigned it to show in cool-retro-term only. Also, I assigned the cmd-Q shortcut in cool-retro-term to the service's name.

tell application "System Events"
    keystroke "d" using control down
end tell