SFML community forums

Help => General => Topic started by: KorolBoxta on June 14, 2017, 10:15:06 am

Title: Writing to SFML Console
Post by: KorolBoxta on June 14, 2017, 10:15:06 am
Hi,

I want to know if the SFML console can/should be used to output text to.

There are lots of threads about hiding it but i'd actually like to throw in some debug stuff if that's appropriate.

std::cout doesn't seem do anything.
Title: Re: Writing to SFML Console
Post by: eXpl0it3r on June 14, 2017, 10:18:29 am
There's no such thing as SFML console. ;)

The terminal/command prompt that opens has to do with the subsystem you use.
std::cout works fine for printing things to the terminal.
Title: Re: Writing to SFML Console
Post by: KorolBoxta on June 14, 2017, 10:19:14 am
Ok must be a VS setting somewhere, thanks.
Title: Re: Writing to SFML Console
Post by: Mario on June 24, 2017, 08:46:42 am
In Visual Studio just make sure your debug build has the subsystem target set to "CONSOLE" (which gives you the console window by default) and your release build is set to "WINDOWS" (which hides the console window by default).