-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Terminal only offers 8 bit color #193562
Comments
Thanks for taking the time to reply. I seem to have attached the wrong screenshot. As mentioned I disabled the PowerShell Extension and the result comes out the same with or without the extension. I have updated the original post. Edit: I'm running VS Code and the external PowerShell window inside a Remote Desktop session. It does not seem to matter for the external window, but maybe it bears an impact on how VS Code handles colors? Colors in use
|
@lunndal could you try enabling trace logging and get the |
Sure thing! |
I see this line:
This ends up running essentially this: Write-Host " `e[0;37;40;100m `e[0;37;47;8m `e[0;7m `e[0m" I was just writing up a detailed explanation of how to look into this but then I realized you're on an old version of Windows 10. Unfortunately that version of Windows does not ship conpty which is the new, much improved pty emulator developed by the Windows Terminal team: You will need up upgrade Windows to fix this as we depend on the OS component. |
There might be some misunderstanding here. I'm on Windows Server 2019 Standard (10.0.17763 Build 17763), as the screenshot in the OP shows. Also, in the screenshot you can see that the Windows PS Terminal in the OS, outside of VS Code, does not have this problem. |
@lunndal that's expected, it works in Windows Terminal because they ship their own version of conpty in product, separate to the one distributed with Windows. We would like to do the same but they don't ship a package yet that we can embed (tracked in microsoft/node-pty#490) |
@Tyriar I see. But is conpty enabled terminal supported in VS Code on Windows Server 2019 Standard (10.0.17763 Build 17763), as I am running? |
@lunndal it's only available in build 18309+, and that's also quite an old version as this point |
EDIT: Tested and working on 2022. Thanks again for your help! One last question before I let you go, @Tyriar : Is this feature supported on Server 2022 LTSB? |
@lunndal I'm not too familiar with Windows Server, typically it's based on the build number of Windows, so if that version is above 18309 I would expect it to work. |
Type: Bug
When I disable or uninstall the PowerShell extension, choose any PowerShell Terminal Default Profile and restart VS Code, the terminal only displays 8 bit color when running the supplied test script. When running the same script in the Windows PowerShell terminal, outside of VS Code, the result is as expected.
Edit: I'm running VS Code and the external PowerShell window inside a Remote Desktop session. It does not seem to matter for the external window, but maybe it bears an impact on how VS Code handles colors?
Colors in use
(Edit2: Screenshot corrected. Thanks @Tyriar)
Code to test
settings.json
VS Code version: Code 1.82.2 (abd2f3d, 2023-09-14T05:55:25.390Z)
OS version: Windows_NT x64 10.0.17763
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: disabled_off
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software
Extensions (2)
A/B Experiments
The text was updated successfully, but these errors were encountered: