terminal icon indicating copy to clipboard operation
terminal copied to clipboard

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

Open leonMSFT opened this issue 7 years ago β€’ 3 comments

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.

leonMSFT avatar Nov 07 '19 02:11 leonMSFT

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 avatar Nov 07 '19 13:11 zadjii-msft

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 avatar Nov 07 '19 15:11 DHowett-MSFT

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 avatar Nov 07 '19 18:11 leonMSFT