Re: stdout not working as expected under "cmd" in Windows XP
- Posted by eujeth Jul 12, 2010
- 1097 views
1) Where does stdout go when I run my program under exw instead of ex (again, from within a cmd window)? What am I not understanding about the difference between ex and exw? Is exw *only* for running a program which does Windows graphics?
It goes to a new command line window, which probably promptly closes too fast to notice that it ever existed. Try this at the end of your program:
include get.e integer z z = wait_key()
exw and exwc are Windows, and ex is MSDOS.
2) Back to "ex b1.ex"... it works fine in a "vanilla" cmd window. But if I mess with the "color" subcommand at all under cmd, then my Euphoria program prints the right number of characters, but they're "solid black background" (i.e. you can't see the characters themselves because they're foreground black in background black)... to see them I need to run "color", and that magically turns off the background color for what was just output. Not sure what's going on, there.
Look into text_color() and bk_color()
Excellent. Thanks much, Jim!