>
> There seems to be some odd buffering issue. I will experiment
> with a small test program to see if I can reproduce it in a smaller
> setting.
>
Yes, there _is_ something odd! This simple program exhibits
the same behaviour:
/* Testing input/output */
#include <stdio.h>
int main( int argc, char *argv[] ) {
int x;
printf( "Type a number\n"); /* fflush( stdout ); */
fscanf( stdin, "%d", &x );
printf( "The number is: %d\n", x );
}
The prompt disappears when it starts, you then have to type
the number blindly and then the output appears.
If you put in the call to fflush(), all appears to be
normal: the request "Type a number" becomes visible immediately.
Odd! It may have to do with default MSYS/MingW console (rxvt) ...
Yes, it_is_ the console! If I run the x01c or x01f program via an ordinary
DOS-box, the list of devices appears and then the question. (*)
So, this is one for the Wiki ;)
Regards,
Arjen
(*) That is one of the advantages of MingW over Cygwin: it produces
ordinary executables with no particular dependencies on the
MingW installation, so that you can run it as a normal Windows
program
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel