如何使全屏 MacOSX 捆绑包可被杀死?
说明:
我正在 MacOSX 上编写 GLFW 应用程序。该应用程序是 Mac 捆绑包。
我希望我的应用程序以全屏模式运行(简单,使用 GLFW_FULLSCREEN)。问题是..我的代码仍然有错误,我不知道如何杀死无限循环的全屏应用程序(即,如果程序中未调用 exit(0); ;我不知道如何强制杀掉它)。
问题是:如何设置 MacOSX Glfw Bundle,以便在无限循环时强制终止它?
谢谢!
Exposition:
I am writing an GLFW app on MacOSX. The app is a Mac bundle.
I want my app to run in fullscreen mode (easy, use GLFW_FULLSCREEN). Problem is .. my code is still buggy, and I do not know how to kill a full-screened app that infinite loops (i.e. if the exit(0); is not called in the program; I don't know how to force kill it).
Question is: how can I set up a MacOSX Glfw Bundle so taht I can force-kill it when it infinite loops?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
设置“公开”,使其在屏幕角落触发,并让“活动监视器”在后台运行。当您想要终止该应用程序时,请暴露给活动监视器并从那里终止它。
Set up expose so it triggers on a screen corner, and leave Activity Monitor running in the background. When you want to kill the app, expose across to Activity Monitor and kill it from there.
现在不在我的 Mac 上,但从记忆中,Command+Option+Escape 或 Command+Option+Shift+Escape 都会杀死全屏应用程序,例如没有响应的游戏。
如果这不起作用,请尝试启用空格。许多捕获所有击键的应用程序不会/不能接管 Control+箭头键快捷键来更改到另一个空间。
最后的选择:设置一台备用计算机;旧的 PowerBook 或 Compact Mac 或类似的东西是理想的,然后通过 SSH 进入开发机器并杀死有问题的进程。
Not at my Mac right now, but from memory either Command+Option+Escape or Command+Option+Shift+Escape will kill a fullscreen app like a game that isn't responing.
If that doesn't work, try enabling spaces. Many apps that capture all keystrokes won't/can't take over the Control+Arrow Key shortcut to change to another space.
Final option: setup a spare computer; an old PowerBook or Compact Mac or something like that is ideal, and SSH into the dev machine and kill the offending process(es).