Terminal doesn't close after FreeConsole() #20674

Open
opened 2026-01-31 07:20:53 +00:00 by claunia · 0 comments
Owner

Originally created by @EXTREMEGABEL on GitHub (Oct 14, 2023).

Windows Terminal version

1.17.11461.0

Windows build number

10.0.19045.0

Other Software

ImHex 1.31.0

Steps to reproduce

Set Windows Terminal to be the standard console app
Start ImHex via explorer

Expected Behavior

As ImHex calls FreeConsole() right before launching the GUI executable, the console window should close.

This works with the "standard" console host.

Actual Behavior

The Console Window stays open.
Occasionally it minimizes.

Originally created by @EXTREMEGABEL on GitHub (Oct 14, 2023). ### Windows Terminal version 1.17.11461.0 ### Windows build number 10.0.19045.0 ### Other Software ImHex 1.31.0 ### Steps to reproduce Set Windows Terminal to be the standard console app Start ImHex via explorer ### Expected Behavior As ImHex calls [FreeConsole()](https://github.com/WerWolv/ImHex/blob/4e9cbd14ebc0f8354de48c15c2b50783c02ea9c7/main/forwarder/source/main.cpp#L40) right before launching the GUI executable, the console window should close. This works with the "standard" console host. ### Actual Behavior The Console Window stays open. Occasionally it minimizes.
claunia added the Needs-TriageIssue-BugResolution-ExternalNeeds-Repro labels 2026-01-31 07:20:54 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#20674