Temporary silence output (stdout)

via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sun May 11 03:55:08 PDT 2014


On Saturday, 10 May 2014 at 20:24:50 UTC, MarisaLovesUsAll wrote:
> Hi!
> I sometimes got a useless messages in stdout from SDL_Image
> library, and I want to temporary silence it. How do I do?

Are you sure it's stdout, not stderr? For the latter, you would 
need to redirect FD 2, not FD 1:

     ...
     auto ex = PushFD!2("/dev/null".ptr);
     ...


More information about the Digitalmars-d-learn mailing list