GA ConHost and ReadConsoleOutputAttribute vs. ReadConsoleOutput #14985

Closed
opened 2026-01-31 04:25:05 +00:00 by claunia · 6 comments
Owner

Originally created by @vefatica on GitHub (Aug 26, 2021).

Windows Terminal version (or Windows build number)

Microsoft Windows 10 Pro for Workstations 10.0.19043.1165 (2009, 21H1)

Other Software

home-made test exe

Steps to reproduce

With the current general audience ConHost.exe, using ESC[28;2;r;g;bm and a color that corresponds to one of the 16 basic ones, write a character to to the console and compare the attributes given by ReadConsoleOutputAttribute and ReadConsoleOutput.

Expected Behavior

Both functions will give the same attributes.

Actual Behavior

ReadConsoleOutput gives the correct attributes, ReadConsoleOutputAttribute does not (see test below). This is appapently fixed in my latest version of OpenConsole.exe (from WindowsTerminal: 1.10.1933.0) (also see below).

When is this fix likely to get into the general audience ConHost.exe?

And, if someone has the time, please describe the process by which changes in OpenConsole.exe make their way into ConHost.exe.

Tests: with ConHost.exe,
image

with OpenConsole.exe,
image

Originally created by @vefatica on GitHub (Aug 26, 2021). ### Windows Terminal version (or Windows build number) Microsoft Windows 10 Pro for Workstations 10.0.19043.1165 (2009, 21H1) ### Other Software home-made test exe ### Steps to reproduce With the current general audience ConHost.exe, using ESC[28;2;r;g;bm and a color that corresponds to one of the 16 basic ones, write a character to to the console and compare the attributes given by ReadConsoleOutputAttribute and ReadConsoleOutput. ### Expected Behavior Both functions will give the same attributes. ### Actual Behavior ReadConsoleOutput gives the correct attributes, ReadConsoleOutputAttribute does not (see test below). This is appapently fixed in my latest version of OpenConsole.exe (from WindowsTerminal: 1.10.1933.0) (also see below). When is this fix likely to get into the general audience ConHost.exe? And, if someone has the time, please describe the process by which changes in OpenConsole.exe make their way into ConHost.exe. Tests: with ConHost.exe, ![image](https://user-images.githubusercontent.com/61856645/131001155-9d5c3fde-0cb2-45c1-a729-93cad7ae4c02.png) with OpenConsole.exe, ![image](https://user-images.githubusercontent.com/61856645/131000762-253f0be3-6c99-4aa4-abb6-3546046fe0d5.png)
claunia added the Resolution-Duplicate label 2026-01-31 04:25:05 +00:00
Author
Owner

@DHowett commented on GitHub (Aug 26, 2021):

This is, at its heart, a /duplicate of #5940 (hey! I see you commented on that one, too 😄).

Every couple of weeks (time permitting), I merge the changes from this repository's main branch into an internal mirror's inbox branch¹. Once I do that, a tool called git2git migrates the tree from that internal mirror into a directory on my team's branch in the Windows repository.

Some weeks later, that branch's content has made its way to main, which is approximately where insider builds come from.

¹ the inbox branch is mirrored out to this repository as well; you can see where it points pretty easily.

@DHowett commented on GitHub (Aug 26, 2021): This is, at its heart, a /duplicate of #5940 (hey! I see you commented on that one, too :smile:). Every couple of weeks (time permitting), I merge the changes from this repository's `main` branch into an internal mirror's `inbox` branch¹. Once I do that, a tool called `git2git` migrates the tree from that internal mirror into a directory on my team's branch in the Windows repository. Some weeks later, that branch's content has made its way to `main`, which is approximately where insider builds come from. ¹ the `inbox` branch is mirrored out to this repository as well; you can see where it points pretty easily.
Author
Owner

@ghost commented on GitHub (Aug 26, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Aug 26, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@ghost commented on GitHub (Aug 26, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Aug 26, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@vefatica commented on GitHub (Aug 26, 2021):

Thanks @DHowett . I actually thought I had asked it before and only searched my own posts.

I didn't mean insider builds. One could call this a bug. How/when might it be fixed in the general audience ConHost.exe.

@vefatica commented on GitHub (Aug 26, 2021): Thanks @DHowett . I actually thought I had asked it before and only searched my own posts. I didn't mean insider builds. One could call this a bug. How/when might it be fixed in the general audience ConHost.exe.
Author
Owner

@DHowett commented on GitHub (Aug 26, 2021):

It will be fixed in the general audience conhost.exe when the insider builds are released to the general audience. We have no special license for fixing tiny incompatibilities in cumulative servicing updates, and so almost all conhost changes have to wait until the next "big update" of Windows.

@DHowett commented on GitHub (Aug 26, 2021): It will be fixed in the general audience conhost.exe when the insider builds are released to the general audience. We have no special license for fixing tiny incompatibilities in cumulative servicing updates, and so almost all conhost changes have to wait until the next "big update" of Windows.
Author
Owner

@vefatica commented on GitHub (Aug 26, 2021):

Thanks again. Is it possible to search for my own contributions to issues created by others?

@vefatica commented on GitHub (Aug 26, 2021): Thanks again. Is it possible to search for my own contributions to issues created by others?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14985