Zandronum Chat @ irc.zandronum.com
#zandronum
Get the latest version: 3.0
Source Code

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0003446Doomseeker[All Projects] Bugpublic2018-08-12 11:482018-11-25 19:06
ReporterZalewa 
Assigned To 
PrioritylowSeverityminorReproducibilityalways
StatusacknowledgedResolutionopen 
PlatformMicrosoftOSWindowsOS VersionXP/Vista/7
Product Version 
Target VersionFixed in Version 
Summary0003446: Doomseeker on Windows needs to redirect output of its command line features.
DescriptionWindows 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 -'
Attached Files

- Relationships

-  Notes
User avatar (0019325)
Blzut3 (administrator)
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.
User avatar (0019326)
Zalewa (developer)
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.

Issue Community Support
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.

- Issue History
Date Modified Username Field Change
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.

Links


Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker