Console switching

Hi,

Since I started running SDL (with small problems - thanks Sam L.)
I just love to write programs. ( funny things: - here in Poland the law says
that the code writer is like an artist who writes poems. So all of the
artists in the word be your self as long ai it is possible. )
beside this my acctualy problem is that:

I’m under linux.
I’m running a program that runs in a console, then it switches to full
screen mode.
How to make that I can see my program on a different console, and the logs
on another.
I think that i make it clear.

Thanks.
jaco

Hi,

Since I started running SDL (with small problems - thanks Sam L.)
I just love to write programs. ( funny things: - here in Poland the
law says
that the code writer is like an artist who writes poems. So all of the
artists in the word be your self as long ai it is possible. )
beside this my acctualy problem is that:

I’m under linux.
I’m running a program that runs in a console, then it switches to full
screen mode.
How to make that I can see my program on a different console, and the
logs
on another.
I think that i make it clear.

There is no portable way to do that. In fact what you are doing there
isn’t really portable anyway, i.e. that coding style kind of defeats
the purpose of SDL. Some targets don’t even have a console like that.

If you only run on linux, you could of course always redirect stderr to
a file, then open another xterm, and run a “tail -F” on your stderr
file. That might be useful for debugging, but I’d strongly advice
requiring such things for release versions of course program; in fact
you shouldn’t assume that your users can see anything you print to the
console.

Cheers,

MaxAm 23.03.2004 um 09:55 schrieb Jaco: