Skip to content

Disable the Console window on Windows #31

Description

@cmeyer

This is set using the Linker > System > SubSystem to /SUBSYSTEM:WINDOWS. However, when doing so, all output to PyCharm is disabled. Need to find a workaround for that.

Useful discussions:

Also, none of the following work to output to PyCharm when running as a GUI app:

    FILE* fp = fopen("CON", "w");
    fputs("ABC", fp);
    fclose(fp);

    fputs("XYZ", stdout);
    fputs("DEF", stderr);
    OutputDebugString("GHI");

One possible idea is to use the log file to see output. It's not the best UI since it requires extra PyCharm setup and does nothing for the command prompt. Another idea is to have a separate Console launcher that can be used with the command prompt and PyCharm.

Activity

  1. self-assigned this
    on Sep 6, 2022
  2. removed their assignment
    on Dec 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions