Skip to content

[Windows] Attach GUI to current console when started from a command line#9858

Open
mpaperno wants to merge 1 commit intobambulab:masterfrom
mpaperno:mp/fix_win_console
Open

[Windows] Attach GUI to current console when started from a command line#9858
mpaperno wants to merge 1 commit intobambulab:masterfrom
mpaperno:mp/fix_win_console

Conversation

@mpaperno
Copy link

Currently there is no output to the console when running Studio from a command line on Windows. For example --help output or CLI parameter parsing errors. The program just appears to not do anything at all in these cases. This is typical for Windows GUI programs since they don't usually need console interaction.

This fix will attach to the current console, if there is one, meaning only if it was started from a console in the first place. It will not open a new console window or start a new process.
[I use this technique on "all" my Win GUI programs for a couple decades now.]

Of course --help is the only way to get a real listing of currently supported switches, since the Wiki article is rather dated/missing a lot of them.

Thanks,
-Max

…per CLI message output (like --help and parameter parsing errors).
@mpaperno mpaperno changed the title [Windows] Attach GUI to current console when run from a command line [Windows] Attach GUI to current console when started from a command line Feb 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant