From: Lennart K. <kol...@dt...> - 2005-10-23 16:16:03
|
Arjan van IJzendoorn wrote: > Hello Mads, > >> This leads me to the following question: How does one test if a display >> is available using WxHaskell? > > > I don't know, but you might check the wxWidgets documentation first > to see whether this framework supports it. If not, there is no chance > of finding a wxHaskell method that does it. I couldn't find one after > quickly scanning the available classes. > > Alternatively, is there maybe an environment variable that tells you > whether a display is available? Usually the environment variable DISPLAY is set if a display is available. This is of course no guaranty that the display can actually be opened. Cheers, Lennart > > Cheers, Arjan |