-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paging -help output #962
Comments
Hm, that would be highly unusual behaviour on UNIX. Many, many programs have help output that exceeds a typical screen, and the usual thing to do is to just pipe the output through |
Yes, Windows is special here. A GUI doesn't have any console output by default. So you have to attach a separate console. And then you can redirect |
I was going to say the same as @DirtyHairy. This is more properly handled by the shell/console from which Stella is launched, not by the app itself. |
Not with Windows and MSVS. Without attaching a separate console, there is NO console output at all in a GUI application like Stella. |
@sa666666 @DirtyHairy |
Hmm, I left a comment, and now it's gone. I originally said that this is working fine in Linux (KDE/konsole shell). And bonus points that it still works with |
Thanks, I was worried that I might have broken something. For Windows the really working solution seems to require to create two programs. A prime example is MSVS, it has Another alternative would be use a GUI window for the console output. But I think both solutions might be overkill. @sa666666 Thoughts? BTW: Meanwhile I added something similar for the debugger's |
This is exactly what I do with the HarmonyCart app. Two versions are included; one is GUI-based, the other is used on the commandline (automatically, as you describe). I never did find another way to do it. If you can, that would be great. I don't know if it's worth the effort for Stella, though. For HarmonyCart, there's specific functionality at the commandline. In Stella, it's just showing the help screen. |
Plus If we create such a 2nd app, how would one setup MSVS? Can both be combined into one solution? |
Not that I know of. I never did find a solution beyond just compiling two versions of the app, and naming one with |
I think its not worth the extra effort. At least not now. |
With the ever increasing number of features and resulting command line parameters, the output for
-help
has become quite large. Therefore we should page the help text, where the output stops after each page.I tried to do this for windows, but the way Windows attaches a console to a GUI app is crazy. 😒 Also MSVS behaves different between Debug and Release mode, so I cannot even debug the problems. 😠 Whatever I tried, it always resulted into having to press
Enter
twice and original console command prompt cluttering the output. E.g.:@sa666666
Maybe this can be easier added at least for Linux and MacOS?
The text was updated successfully, but these errors were encountered: