Default Background/Foreground found in the schema doesn't match with what shows up in Terminal. #4847

Closed
opened 2026-01-30 23:58:01 +00:00 by claunia · 3 comments
Owner

Originally created by @leonMSFT on GitHub (Nov 7, 2019).

Originally assigned to: @cinnamon-msft on GitHub.

Environment

Windows build number: Microsoft Windows [Version 10.0.19013.1102]
Windows Terminal version (if applicable): 0.6

Steps to reproduce

Create a color scheme with foreground as #ffffff and background as #000000 to represent white and black respectively. Create two profiles of cmd, assign one the custom color scheme, and the other with no color scheme to give it the default background and foreground. The default profile has a slightly lighter black background, and a slightly darker white foreground.

Expected behavior

The schema found here: https://aka.ms/terminal-profiles-schema says that the default background is #000000 (black) and the default foreground is #ffffff (white).

Actual behavior

Default background is slightly lighter than black and default foreground is slightly darker than white.

Originally created by @leonMSFT on GitHub (Nov 7, 2019). Originally assigned to: @cinnamon-msft on GitHub. <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment ```none Windows build number: Microsoft Windows [Version 10.0.19013.1102] Windows Terminal version (if applicable): 0.6 ``` # Steps to reproduce Create a color scheme with foreground as \#ffffff and background as \#000000 to represent white and black respectively. Create two profiles of cmd, assign one the custom color scheme, and the other with no color scheme to give it the default background and foreground. The default profile has a slightly lighter black background, and a slightly darker white foreground. # Expected behavior The schema found here: https://aka.ms/terminal-profiles-schema says that the default background is \#000000 (black) and the default foreground is \#ffffff (white). # Actual behavior Default background is slightly lighter than black and default foreground is slightly darker than white.
claunia added the Resolution-Fix-CommittedProduct-TerminalIssue-DocsArea-Schema labels 2026-01-30 23:58:02 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Nov 7, 2019):

Hmm, this is a bit confusing. The trick here is that the default value of "colorScheme" is "Campbell".

That documentation should probably be updated to not give a default value for those settings, since they're unset by default 😄

@zadjii-msft commented on GitHub (Nov 7, 2019): Hmm, this is a bit confusing. The trick here is that the default value of "colorScheme" is "Campbell". That documentation should probably be updated to not give a default value for those settings, since they're _unset_ by default 😄
Author
Owner

@DHowett-MSFT commented on GitHub (Nov 7, 2019):

not give a default value

So, the default in schema is actually the value that shows up as a suggestion or gets automatically input in a compliant editor— it’s apparently less about what the default is and more about user education?

@DHowett-MSFT commented on GitHub (Nov 7, 2019): > not give a default value So, the `default` in schema is actually the value that shows up as a suggestion or gets automatically input in a compliant editor— it’s apparently less about what the default is and more about user education?
Author
Owner

@leonMSFT commented on GitHub (Nov 7, 2019):

Ah, the default scheme being Campbell was tripping me up a little. 😅 I was in the mindset of thinking of default as "what the fg/bg color should be when I don't set it in either the profile or the color scheme".

Looks like in the schema, background/foreground block doesn't have a default property, and so when adding fg/bg to the settings json, it simply auto fills a "#" and lets you put the hex in yourself. But, hovering over the key for the description tells you this: "Default #000000 (black).".

@leonMSFT commented on GitHub (Nov 7, 2019): Ah, the default scheme being Campbell was tripping me up a little. 😅 I was in the mindset of thinking of default as "what the fg/bg color should be when I don't set it in either the profile or the color scheme". Looks like in the schema, <code>background</code>/<code>foreground</code> block doesn't have a <code>default</code> property, and so when adding fg/bg to the settings json, it simply auto fills a "#" and lets you put the hex in yourself. But, hovering over the key for the description tells you this: "Default #000000 (black).".
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4847