roadkillguy
May 29th, 2011, 06:28 PM
I'm working on a little something in c++ that needs to output text to a console. I'd like to know two things:
A. Under linux, how do I make a terminal open up at runtime? Running my program through file browser doesn't open one automatically, even If I specify /dev/tty in freopen.
B. When under windows, why is it that a console opens up but remains blank for the duration of my program? When specifying "CON" it only redirects output when the program is run through cmd. I'm cross compiling with mingw.
Basically, I need the user to be able to see what is going on in real time, and at this point it's ok to use #ifdef WINDOWS.
Thanks a bunch!
A. Under linux, how do I make a terminal open up at runtime? Running my program through file browser doesn't open one automatically, even If I specify /dev/tty in freopen.
B. When under windows, why is it that a console opens up but remains blank for the duration of my program? When specifying "CON" it only redirects output when the program is run through cmd. I'm cross compiling with mingw.
Basically, I need the user to be able to see what is going on in real time, and at this point it's ok to use #ifdef WINDOWS.
Thanks a bunch!