开发者

Haskell: OpenGL, how to prevent immediate window closing

开发者 https://www.devze.com 2023-01-01 03:58 出处:网络
Whenever I clo开发者_运维百科se OpenGL window it makes ghci console from which the app was started to immediately disappear. Is there a way to prevent this behaviour? A sample app.

Whenever I clo开发者_运维百科se OpenGL window it makes ghci console from which the app was started to immediately disappear. Is there a way to prevent this behaviour? A sample app.

Thanks.


before calling mainLoop, you can change the actionOnWindowClose mode :

actionOnWindowClose $= MainLoopReturns

mainLoop

Don't know if it works for non-Linux users.

0

精彩评论

暂无评论...
验证码 换一张
取 消