GA ConHost and ReadConsoleOutputAttribute vs. ReadConsoleOutput #14982

Open
opened 2026-01-31 04:25:03 +00:00 by claunia · 0 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:03 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14982