[PR #5999] [MERGED] Correct the default 6x6x6 palette entries #26565

Open
opened 2026-01-31 09:16:50 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/5999
Author: @j4james
Created: 5/19/2020
Status: Merged
Merged: 5/19/2020
Merged by: @undefined

Base: masterHead: fix-default-palette


📝 Commits (3)

  • 1195ae7 Correct some of the values in the default 256-color palette.
  • 4c884ac Remove some unnecessary whitespace.
  • 98c43b2 Remove some more unnecessary whitespace.

📊 Changes

1 file changed (+134 additions, -134 deletions)

View changed files

📝 src/types/utils.cpp (+134 -134)

📄 Description

There is a range of 216 colors in the default 256-color table that is
meant to be initialized with a 6x6x6 color cube, with each color
component iterating over the values 00, 5F, 87, AF, D7, and
FF. A few of the entries incorrectly had the red component has DF,
when it should have been D7. This PR corrects those entries. It also
removes a bit of unnecessary whitespace in the first 100 entries.

Validation Steps Performed

I have a visual test script that renders the full 256-color palette,
using both the indexed color sequence (SGR 38;5) and the equivalent
rgb representation (SGR 38;2) side by side. Although the difference
was subtle when it was incorrect, I can now see that it has been fixed.

Closes #5994


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/5999 **Author:** [@j4james](https://github.com/j4james) **Created:** 5/19/2020 **Status:** ✅ Merged **Merged:** 5/19/2020 **Merged by:** [@undefined](undefined) **Base:** `master` ← **Head:** `fix-default-palette` --- ### 📝 Commits (3) - [`1195ae7`](https://github.com/microsoft/terminal/commit/1195ae71cb58a6d863a40ee0b622212495ccef24) Correct some of the values in the default 256-color palette. - [`4c884ac`](https://github.com/microsoft/terminal/commit/4c884accac93eb9d8a144cb34a206b95f93b8fad) Remove some unnecessary whitespace. - [`98c43b2`](https://github.com/microsoft/terminal/commit/98c43b254e5200bb6b7a8797c3f8fe63ab00481a) Remove some more unnecessary whitespace. ### 📊 Changes **1 file changed** (+134 additions, -134 deletions) <details> <summary>View changed files</summary> 📝 `src/types/utils.cpp` (+134 -134) </details> ### 📄 Description There is a range of 216 colors in the default 256-color table that is meant to be initialized with a 6x6x6 color cube, with each color component iterating over the values `00`, `5F`, `87`, `AF`, `D7`, and `FF`. A few of the entries incorrectly had the _red_ component has `DF`, when it should have been `D7`. This PR corrects those entries. It also removes a bit of unnecessary whitespace in the first 100 entries. ## Validation Steps Performed I have a visual test script that renders the full 256-color palette, using both the indexed color sequence (`SGR 38;5`) and the equivalent rgb representation (`SGR 38;2`) side by side. Although the difference was subtle when it was incorrect, I can now see that it has been fixed. Closes #5994 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:16:50 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#26565