newbie question: suppressing dos window

Duncan Coutts duncan.coutts at worc.ox.ac.uk
Tue Jun 13 10:35:37 EDT 2006


On Tue, 2006-06-13 at 16:23 +0200, Maarten wrote:
> Dear all,
> 
> Is it somehow possible to suppress the dos window (in windows), for 
> example to run tasks in the background?
> Couldn't find it anywhere in the documentation. Any suggestions 
> appreciated. Thanks.

There's an FAQ on this on the Gtk2Hs site:

http://haskell.org/gtk2hs/archives/2005/06/23/hiding-the-console-on-windows/


The thing you have to watch out for is using standard IO functions when
the process's stdin/stdou/stderr are not connected to anything. So if
your program does not use the stdio at all then you're ok, or if you
launch the program with redirected standard io handles (eg to pipes)
then you're probably also ok.

Duncan



More information about the Libraries mailing list