SFML community forums
Help => General => Topic started 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.
-
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.
-
Ok must be a VS setting somewhere, thanks.
-
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).