Black Background is either transparent or not rendered. #4841

Closed
opened 2026-01-30 23:57:50 +00:00 by claunia · 2 comments
Owner

Originally created by @sp1ritCS on GitHub (Nov 6, 2019).

Environment

Microsoft Windows [Version 10.0.18362.418]
Windows Terminal version (if applicable): 2019.1022.2157.0

Any other software?
(WSL)

I originaly asked this as a question on the unix stackexchange, because I thought this to be an issue with the WSL and not windows terminal. (Original Question)

Steps to reproduce

Add the following Color scheme (or any other, I tried It didn't matter) to the profiles.json

{
    "background": "#ECF0F1",
    "black": "#2C3E50",
    "blue": "#3498DB",
    "brightBlack": "#95A5A6",
    "brightBlue": "#3498DB",
    "brightCyan": "#1ABC9C",
    "brightGreen": "#2ECC71",
    "brightPurple": "#9B59B6",
    "brightRed": "#E74C3C",
    "brightWhite": "#ECF0F1",
    "brightYellow": "#F1C40F",
    "cyan": "#1ABC9C",
    "foreground": "#7F8C8D",
    "green": "#2ECC71",
    "name": "Flat Light",
    "purple": "#9B59B6",
    "red": "#E74C3C",
    "white": "#e0e0e0",
    "yellow": "#F1C40F"
}

And enable it for any profile. (I tried WSL (Arch & Ubuntu) aswell as cmd)
Now if you try to get an black background of some sort. You'll get the background color.
1

I tried printf "\033[40;30mNot a black background" on WSL aswell as color 0f on cmd.

Expected behavior

The blackground is suposed to be black (grayish blue) on ASNI 40.


I assume that this is the result of my incompetence rather that an actual bug, but in this case the documentation should be updated.

Originally created by @sp1ritCS on GitHub (Nov 6, 2019). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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 Microsoft Windows [Version 10.0.18362.418] Windows Terminal version (if applicable): 2019.1022.2157.0 Any other software? (WSL) ``` I originaly asked this as a question on the unix stackexchange, because I thought this to be an issue with the WSL and not windows terminal. ([Original Question](https://unix.stackexchange.com/questions/550033/ansi-40-black-background-does-not-work-in-wsl-using-windows-terminal)) # Steps to reproduce Add the following Color scheme (or any other, I tried It didn't matter) to the profiles.json ```json { "background": "#ECF0F1", "black": "#2C3E50", "blue": "#3498DB", "brightBlack": "#95A5A6", "brightBlue": "#3498DB", "brightCyan": "#1ABC9C", "brightGreen": "#2ECC71", "brightPurple": "#9B59B6", "brightRed": "#E74C3C", "brightWhite": "#ECF0F1", "brightYellow": "#F1C40F", "cyan": "#1ABC9C", "foreground": "#7F8C8D", "green": "#2ECC71", "name": "Flat Light", "purple": "#9B59B6", "red": "#E74C3C", "white": "#e0e0e0", "yellow": "#F1C40F" } ``` And enable it for any profile. (I tried WSL (Arch & Ubuntu) aswell as cmd) Now if you try to get an black background of some sort. You'll get the background color. ![1](https://user-images.githubusercontent.com/31540351/68331725-c288ca00-00d5-11ea-88ae-a9b4f2f8c30c.png) I tried `printf "\033[40;30mNot a black background"` on WSL aswell as `color 0f` on cmd. # Expected behavior The blackground is suposed to be black (grayish blue) on ASNI 40. ------------------ I assume that this is the result of my incompetence rather that an actual bug, but in this case the documentation should be updated.
claunia added the Resolution-Duplicate label 2026-01-30 23:57:50 +00:00
Author
Owner

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

This is a /dupe of #293. Sorry for the confusion!

@DHowett-MSFT commented on GitHub (Nov 6, 2019): This is a /dupe of #293. Sorry for the confusion!
Author
Owner

@ghost commented on GitHub (Nov 6, 2019):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Nov 6, 2019): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4841