When I'm done with Terminal, I want to exit it. Right now, I have three options:
killall Terminal. It will end the process, but rather abruptly. I don't think this is the best idea.
Call exit. I've changed the settings so exit closes Terminal. The app still appears open in the Dock though, and doesn't do what I want it to do.
Right click>Quit. However, this isn't a Terminal command to exit it.
So now, what is the way I should exit and close Terminal? I've heard something about osascript but I'm not too sure. I want to exit and close, so that Terminal is no longer open, both as a window and as a process.
kill
,killall
defaults to sendingSIGTERM
, which can be caught. Some programs catch it, clean up after themselves and exit gracefully. No idea ifTerminal.app
is among them. However, I suspect this would be better on Ask Different or Super User in a pinch as it does not seem to have any programming content. – dmckee --- ex-moderator kitten