Some of the 6x6x6 palette entries are incorrect #8272

Closed
opened 2026-01-31 01:25:08 +00:00 by claunia · 2 comments
Owner

Originally created by @j4james on GitHub (May 19, 2020).

Environment

Windows build number: Version 10.0.18362.720
Windows Terminal version (if applicable): Commit c1df53f014

Steps to reproduce

Look at the RGB values for colors 178 to 195 in Initialize256ColorTable method here:
c1df53f014/src/types/utils.cpp (L363-L380)

Compare them to the same index colors in XTerm's palette here:
c3a6a55610/256colres.h (L171-L188)

Expected behavior

The RGB values should be the same.

Actual behavior

Out red component for that range is DF rather than D7. Although funnily enough, the preceding colors in that block (160 to 177) are actually using the correct red value.

For further confirmation, you can see the formula VTE uses to initialize the palette here:
6a9580bab8/src/vte.cc (L2351-L2358)

With that formula, the only possible values for a component are 00, 5F, 87, AF, D7, and FF.

Originally created by @j4james on GitHub (May 19, 2020). # Environment Windows build number: Version 10.0.18362.720 Windows Terminal version (if applicable): Commit c1df53f01439e10023692e14d701986e74f59210 # Steps to reproduce Look at the RGB values for colors 178 to 195 in `Initialize256ColorTable` method here: https://github.com/microsoft/terminal/blob/c1df53f01439e10023692e14d701986e74f59210/src/types/utils.cpp#L363-L380 Compare them to the same index colors in XTerm's palette here: https://github.com/ThomasDickey/xterm-snapshots/blob/c3a6a556105c9f90529f36791e549ef674fc9394/256colres.h#L171-L188 # Expected behavior The RGB values should be the same. # Actual behavior Out _red_ component for that range is `DF` rather than `D7`. Although funnily enough, the preceding colors in that block (160 to 177) are actually using the correct _red_ value. For further confirmation, you can see the formula VTE uses to initialize the palette here: https://github.com/GNOME/vte/blob/6a9580bab89c8d82d67cff538e1d0c483c6e142f/src/vte.cc#L2351-L2358 With that formula, the only possible values for a component are `00`, `5F`, `87`, `AF`, `D7`, and `FF`.
claunia added the Needs-TriageResolution-Fix-CommittedNeeds-Tag-Fix labels 2026-01-31 01:25:08 +00:00
Author
Owner

@ghost commented on GitHub (Jun 18, 2020):

:tada:This issue was addressed in #5999, which has now been successfully released as Windows Terminal Preview v1.1.1671.0.🎉

Handy links:

@ghost commented on GitHub (Jun 18, 2020): :tada:This issue was addressed in #5999, which has now been successfully released as `Windows Terminal Preview v1.1.1671.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.1.1671.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Author
Owner

@ghost commented on GitHub (Jun 30, 2020):

:tada:This issue was addressed in #5999, which has now been successfully released as Windows Terminal v1.0.1811.0.🎉

Handy links:

@ghost commented on GitHub (Jun 30, 2020): :tada:This issue was addressed in #5999, which has now been successfully released as `Windows Terminal v1.0.1811.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.0.1811.0) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#8272