...
But yes, your getenv preference would be a nice additional option so that one could chose the preferred method to activate the new modes - easily done and I'll bear that in mind. I used almost identical getenv code in my very old 'wiak' program of eight or more years ago as it happens.
The following by the way is pretty much the simple method being used to select the new modes anyway, albeit for commandline args rather than a getenv result:
Just two simple flags (option_blocking or option_nonblocking) used by an if statement to control the flow logic. Pretty much impossible to get wrong - safe as pie...aaaaa wrote:Code: Select all
#include <stdlib.h> if (getenv("GTKWIALOG")) { GTKWIALOG=1; }
wiak