Flash the pane dark when BEL is emitted and pane's appearance has a light background #17880

Closed
opened 2026-01-31 05:57:13 +00:00 by claunia · 4 comments
Owner

Originally created by @yunruse on GitHub (Jul 7, 2022).

Description of the new feature/enhancement

Pull request Add a setting to flash the pane when BEL is emitted #9270 implemented a visual BEL indictor on the working terminal pane. It's currently a white flash, which works well against a traditional dark-mode background. However, on a light appearance this basically only lightly flashes the text, making it a little hard to notice!
Is there a possibility this could be modified to work with higher contrast light-mode users? Thank you!

Proposed technical implementation details (optional)

I'd probably set (and store?) an isBackgroundLight bool somewhere iff the background color of the pane is "light". If it is, and the BEL handler has the window flag set, the pane would flash dark on a BEL instead of light.

A quick way to find isBackgroundLight may be to just see if the average of r, g and b is higher than 127. I can't imagine enough people have #888888-ish terminals for this to warrant being a manually-defined setting.

Originally created by @yunruse on GitHub (Jul 7, 2022). <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 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! --> # Description of the new feature/enhancement Pull request [Add a setting to flash the pane when BEL is emitted #9270](https://github.com/microsoft/terminal/pull/9270) implemented a visual BEL indictor on the working terminal pane. It's currently a white flash, which works well against a traditional dark-mode background. However, on a light appearance this basically only lightly flashes the text, making it a little hard to notice! Is there a possibility this could be modified to work with higher contrast light-mode users? Thank you! # Proposed technical implementation details (optional) I'd probably set (and store?) an `isBackgroundLight` bool somewhere iff the background color of the pane is "light". If it is, and the BEL handler has the `window` flag set, the pane would flash _dark_ on a BEL instead of light. A quick way to find `isBackgroundLight` may be to just see if the average of `r`, `g` and `b` is higher than `127`. I can't imagine enough people have `#888888`-ish terminals for this to warrant being a manually-defined setting.
Author
Owner

@zadjii-msft commented on GitHub (Jul 7, 2022):

That seems sensible to me!

@zadjii-msft commented on GitHub (Jul 7, 2022): That seems sensible to me!
Author
Owner

@zadjii-msft commented on GitHub (Jul 7, 2022):

(@carlos-zamora you think this is something that counts as an a11y bug?)

@zadjii-msft commented on GitHub (Jul 7, 2022): (@carlos-zamora you think this is something that counts as an a11y bug?)
Author
Owner

@carlos-zamora commented on GitHub (Jul 7, 2022):

(@carlos-zamora you think this is something that counts as an a11y bug?)

Yeah. It's basically a high-contrast bug, when you think about it (just not limited to high contrast mode itself). Similar to how we are expected to have a good enough contrast for text in SUI.

@carlos-zamora commented on GitHub (Jul 7, 2022): > (@carlos-zamora you think this is something that counts as an a11y bug?) Yeah. It's basically a high-contrast bug, when you think about it (just not limited to high contrast mode itself). Similar to how we are expected to have a good enough contrast for text in SUI.
Author
Owner

@ghost commented on GitHub (Sep 13, 2022):

:tada:This issue was addressed in #13707, which has now been successfully released as Windows Terminal Preview v1.16.252.🎉

Handy links:

@ghost commented on GitHub (Sep 13, 2022): :tada:This issue was addressed in #13707, which has now been successfully released as `Windows Terminal Preview v1.16.252`.:tada: Handy links: * [Release Notes](https://github.com/microsoft/terminal/releases/tag/v1.16.252) * [Store Download](https://www.microsoft.com/store/apps/9n8g5rfz9xk3?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#17880