Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Black text displays as white on red background in default dark and several other themes #213865

Closed
carbon-starlight opened this issue May 29, 2024 · 1 comment
Assignees
Labels
terminal-conpty Integrated terminal issues related to the ConPTY backend upstream Issue identified as 'upstream' component related (exists outside of VS Code) windows VS Code on Windows issues

Comments

@carbon-starlight
Copy link

carbon-starlight commented May 29, 2024

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.89.1
  • OS Version: Windows 10

Steps to Reproduce:

  1. Open the terminal (under the workspace, the one under PROBLEMS OUTPUT DEBUG CONSOLE TERMINAL)
  2. Launch Python3 with py
  3. Run the line I was testing: print('\033[30m\033[41m🭪 All subprocesses were terminated 🭨\033[0m'

In Windows Terminal (app) and with some themes it displays correctly, in VSCode with default dark theme the text is white (should be black due to escape code \033[30m).

The following themes are affected:

  • 2017 Dark
  • Dark (Visual Studio -- C/C++)
  • Dark (Visual Studio)
  • Dark Modern
  • Dark+
  • Kimble Dark
  • Monokai
  • Monokai Dimmed
  • Red
  • Selclouth
  • etc.

Examples of themes there the coloring is correct:

  • Solarized Light
  • Abyss
  • Solarized Dark
  • SynthWave '84
  • Tomorrow Night Blue
@Tyriar
Copy link
Member

Tyriar commented Dec 18, 2024

This issue seems to originate from an upstream component and is not something VSCode can fix by making a change to our code. As such, I will go ahead and close it. Please try to reproduce in Windows Terminal and report to microsoft/terminal with repro steps.

If you cannot reproduce in Windows Terminal, chances are it's fixed in a later version of Windows. You can read more about how we consume conpty here. Additionally, soon we plan on shipping conpty v2 with VS Code which should bring our behavior in line with Windows Terminal. Thanks for understanding.

/label upstream terminal-conpty windows

@Tyriar Tyriar closed this as completed Dec 18, 2024
@vs-code-engineering vs-code-engineering bot added upstream Issue identified as 'upstream' component related (exists outside of VS Code) terminal-conpty Integrated terminal issues related to the ConPTY backend windows VS Code on Windows issues labels Dec 18, 2024
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Feb 2, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
terminal-conpty Integrated terminal issues related to the ConPTY backend upstream Issue identified as 'upstream' component related (exists outside of VS Code) windows VS Code on Windows issues
Projects
None yet
Development

No branches or pull requests

2 participants