|Anonymous | Login | Signup for a new account||2019-02-16 05:16 UTC|
|My View | View Issues | Change Log | Roadmap | Doomseeker Issue Support Ranking | Rules | My Account|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0003446||Doomseeker||[All Projects] Bug||public||2018-08-12 11:48||2018-11-25 19:06|
|Target Version||Fixed in Version|
|Summary||0003446: Doomseeker on Windows needs to redirect output of its command line features.|
|Description||Windows release builds with 'subsystem:windows' disable the output of stdout and stderr to console. There's no output even if doomseeker.exe is run from a cmd. |
To fix this problem we either need to allocate our own console (AFAIK this is possible through WinAPI) or redirect the output to a GUI box.
|Steps To Reproduce||# Navigate in cmd.exe to doomseeker's directory.|
# Run doomseeker.exe with a pure command line action, such as 'doomseeker --help' or 'doomseeker --version-json -'
Here's how ECWolf does it:https://bitbucket.org/ecwolf/ecwolf/src/f641fbed07972eb776ff27082534857a54e6ff0a/src/win32/i_main.cpp#lines-290 [^]
Note that unfortunately it's going to be quirky no matter what since IIRC when you're a Windows app the command prompt doesn't block so, while you can write to the console that started the app, I'm not sure it's possible to pipeline the output. The other option is to be a console app and drop the console, but that has it's quirks since the users will see that happening every launch.
Thanks for that example, it will definitely be useful.
While enabling piping would be desirable, my main goal here is to provide feedback to the user as right now the user has none.
|Only registered users can voice their support. Click here to register, or here to log in.|
|Supporters:||No one explicitly supports this issue yet.|
|Opponents:||No one explicitly opposes this issue yet.|
|2018-08-12 11:48||Zalewa||New Issue|
|2018-08-12 19:59||Blzut3||Note Added: 0019325|
|2018-08-12 20:03||Zalewa||Note Added: 0019326|
|2018-08-20 17:51||WubTheCaptain||Status||new => acknowledged|
|2018-10-05 08:43||WubTheCaptain||Priority||normal => low|
|2018-11-25 19:06||Blzut3||Relationship added||has duplicate 0003567|
|2018-11-25 19:06||Blzut3||Relationship deleted||has duplicate 0003567|
|2018-11-25 21:55||WubTheCaptain||Relationship added||has duplicate 0003567|
|2018-11-25 22:02||Blzut3||Relationship deleted||has duplicate 0003567|
Questions or other issues? Contact Us.
|Copyright © 2000 - 2019 MantisBT Team|