MantisBT - Doomseeker
View Issue Details
0003446Doomseeker[All Projects] Bugpublic2018-08-12 11:482018-11-25 19:06
Zalewa 
 
lowminoralways
acknowledgedopen 
MicrosoftWindowsXP/Vista/7
 
 
0003446: Doomseeker on Windows needs to redirect output of its command line features.
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.
# 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 -'
No tags attached.
Issue History
2018-08-12 11:48ZalewaNew Issue
2018-08-12 19:59Blzut3Note Added: 0019325
2018-08-12 20:03ZalewaNote Added: 0019326
2018-08-20 17:51WubTheCaptainStatusnew => acknowledged
2018-10-05 08:43WubTheCaptainPrioritynormal => low
2018-11-25 19:06Blzut3Relationship addedhas duplicate 0003567
2018-11-25 19:06Blzut3Relationship deletedhas duplicate 0003567
2018-11-25 21:55WubTheCaptainRelationship addedhas duplicate 0003567
2018-11-25 22:02Blzut3Relationship deletedhas duplicate 0003567

Notes
(0019325)
Blzut3   
2018-08-12 19:59   
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.
(0019326)
Zalewa   
2018-08-12 20:03   
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.