UPBGE / upbge

UPBGE, the best integrated game engine in Blender
https://upbge.org
Other
1.39k stars 177 forks source link

Add OSX shortcut to quit the python interpreter. #1834

Closed jonathangeovani closed 10 months ago

jonathangeovani commented 11 months ago

Missing shortcut to quit terminal on OSX. This PR is to add the shortcut to improve the experience for Mac users.

lordloki commented 11 months ago

Thanks for the PR. I will test the solution at the weekend and come back to apply it

lordloki commented 11 months ago

Hi, I just test and in my macos system "exit" doesn't work. Only works using exit() or CTRL+D. Could you test in yours?

jonathangeovani commented 11 months ago

I apologize for the mistake. in fact, the shortcut to exit the Python interpreter on Mac OS is CTRL+D.

lordloki commented 11 months ago

No problem. If you remove last "else" condition and transform the "elseif linux" condition in an "else" to cover linux and mac, I could apply your pull.

jonathangeovani commented 11 months ago

It's done. Thanks.

youle31 commented 10 months ago

Thanks very much to you both, I merge this one too, as it seems ok now. Thanks!