Haskell:OpenGL,如何防止立即关闭窗口

时间:2010-05-22 07:10:38

标签: haskell opengl functional-programming graphics

每当我关闭OpenGL窗口时,它会使应用程序启动的ghci控制台立即消失。有没有办法防止这种行为? A sample app

感谢。

1 个答案:

答案 0 :(得分:2)

在调用mainLoop之前,您可以更改actionOnWindowClose模式:

actionOnWindowClose $= MainLoopReturns

mainLoop

不知道它是否适用于非Linux用户。