-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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
Dim escape code in terminal should not effect background color #161316
Comments
Related to xtermjs/xterm.js#3534 |
We changed this to align with xterm and VTE (Gnome terminal / Konsole). While ITerm doesn't do this (yet?), we went with what most terminals do |
The described behavior is how it is expected to work. If you disagree, please explain what is expected and what is not in more detail. See also our issue reporting guidelines. Happy Coding! |
I don't think that's the case. I ran a straw poll on Twitter, and it was a virtual consensus that dim does not change the background color. https://twitter.com/willmcgugan/status/1572208240493985793 This isn't actually related to xtermjs/xterm.js#3534 The code I pasted above changes background and foreground colors, but doesn't apply the escape code for inverse. |
@meganrogge Could you take another look at this one? I've confirmed that vscode is unique in this behaviour. Here are screenshots from gnome terminal and xterm: |
Yeah looks like a problem, thanks |
Type: Bug
The dim ansi escape sequence SGR 2 changes both the foreground and background color in the vscode terminal. AFAICT other terminals only alter the text color.
Reproduce with the following python code:
On vscode, the background color of the dim text appears blended with the window color. On other terminals the background red is the same on both lines.
Output on vscode
Output on iTerm for MacOS
BTW I disabled the "minimum contrast ration" setting by setting it to 1.
VS Code version: Code 1.71.2 (74b1f97, 2022-09-14T21:07:15.900Z)
OS version: Darwin arm64 21.6.0
Modes:
Sandboxed: No
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Extensions (48)
(3 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: