mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 11:23:29 +00:00

This is only recognized by the game client at the moment. The implementation is a bit hacky but it seems to work. Thanks, SDLmain. The cwesnoth.cmd Windows batch file passes --wconsole to Wesnoth in the command line, along with any other arguments passed to it. This is intended to be *the* use case for --wconsole, since otherwise the fact that Windows won't allocate a console for us on process initialization (due to Wesnoth being compiled with the GUI application flag) causes issues with the Command Prompt shell -- namely, the shell returns before Wesnoth allocates its console, allowing shell input to happen concurrently with Wesnoth's output to console. cwesnoth.cmd should be used in shortcuts and given Wesnoth's install path as its initial working directory.