Add a setting to control selection background color #4647

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

Originally created by @zadjii-msft on GitHub (Oct 25, 2019).

Originally assigned to: @leonMSFT on GitHub.

From @cayos in #3322:

It'd be amazing if you guys could implement the few remaining color customization options from VSCode's terminal to reach feature parity. They are:

  • terminal.selectionBackground: The selection background color of the terminal.
Originally created by @zadjii-msft on GitHub (Oct 25, 2019). Originally assigned to: @leonMSFT on GitHub. From @cayos in #3322: > It'd be amazing if you guys could implement the few remaining color customization options from VSCode's terminal to reach feature parity. They are: > * terminal.selectionBackground: The selection background color of the terminal.
Author
Owner

@zadjii-msft commented on GitHub (Oct 29, 2019):

From @javierdlg in #3061:

We're actually very interested in this since we have found a few contrast ratio issues with our colors and the terminal. We've also received some feedback since the terminal is the only tool that has different highlighting colors in VS:
image

Any ideas on the cost for this feature request?

I honestly don't know what that would cost. Adding a simple color setting to the settings can be done in a day, but connecting that to the renderer might prove trickier. I don't really know enough about how the DX renderer works, so it's harder for me to cost what changing that might take. Maybe @miniksa could add his thoughts?

I think it is a lot trickier to provide an "invert selection" mode (like conhost), but setting a single arbitrary color for selection might be a lot simpler.

@zadjii-msft commented on GitHub (Oct 29, 2019): From @javierdlg in #3061: > > > We're actually very interested in this since we have found a few contrast ratio issues with our colors and the terminal. We've also received some feedback since the terminal is the only tool that has different highlighting colors in VS: > ![image](https://user-images.githubusercontent.com/2334756/67793279-c1053500-fa37-11e9-84ab-0fb0a10ccf11.png) > > Any ideas on the cost for this feature request? I honestly don't know what that would cost. Adding a simple color setting to the settings can be done in a day, but connecting that to the renderer might prove trickier. I don't really know enough about how the DX renderer works, so it's harder for me to cost what changing that might take. Maybe @miniksa could add his thoughts? I think it is a lot trickier to provide an "invert selection" mode (like conhost), but setting a single arbitrary color for selection might be a lot simpler.
Author
Owner

@rub8n commented on GitHub (Oct 30, 2019):

Thanks for looking into this guys! For additional context, this is important for us because of the accessibility implications.

For example, if you see the image below, you can see how the colors don't really meet contrast ratios:
image

@rub8n commented on GitHub (Oct 30, 2019): Thanks for looking into this guys! For additional context, this is important for us because of the accessibility implications. For example, if you see the image below, you can see how the colors don't really meet contrast ratios: ![image](https://user-images.githubusercontent.com/11544832/67879051-8a8fee80-faf9-11e9-8f07-54422d2c84bd.png)
Author
Owner

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

:tada:This issue was addressed in #3471, which has now been successfully released as Windows Terminal Preview v0.7.3291.0.🎉

Handy links:

@ghost commented on GitHub (Nov 26, 2019): :tada:This issue was addressed in #3471, which has now been successfully released as `Windows Terminal Preview v0.7.3291.0`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v0.7.3291.0) * [Store Download](https://www.microsoft.com/store/apps/9n0dx20hk701?cid=storebadge&ocid=badge)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#4647