Custom Visual Bell #18381

Open
opened 2026-01-31 06:12:10 +00:00 by claunia · 2 comments
Owner

Originally created by @vanoreo on GitHub (Sep 4, 2022).

Allowing User Customization of the Visual Bell

I came across this thread in which custom bell sounds were added, and realized that it could also be useful to customize the visual bell as well. I think the most straightforward customizations would be:

  1. Allow changing the color, intensity, and duration of the default behavior (for instance, a normally black terminal flashing red briefly instead of grey) and/or
  2. Adding, or overriding any background image with one indicating failure (see below)
    image
Originally created by @vanoreo on GitHub (Sep 4, 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! --> # Allowing User Customization of the Visual Bell I came across [this thread](https://github.com/microsoft/terminal/issues/8366) in which custom bell sounds were added, and realized that it could also be useful to customize the visual bell as well. I think the most straightforward customizations would be: 1) Allow changing the color, intensity, and duration of the default behavior (for instance, a normally black terminal flashing red briefly instead of grey) and/or 2) Adding, or overriding any background image with one indicating failure (see below) ![image](https://user-images.githubusercontent.com/36086015/188297108-d4b33d2d-1833-4e67-9efe-00fdba24a00f.png) <!-- A clear and concise description of what the problem is that the new feature would solve. Describe why and how a user would use this new functionality (if applicable). --> <!-- A clear and concise description of what you want to happen. -->
Author
Owner

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

AKA the jumpscare bell.

seriously though this would be very useful to anyone who doesn't benefit from an audible bell.

@TSheahan commented on GitHub (Sep 13, 2022): AKA the jumpscare bell. seriously though this would be very useful to anyone who doesn't benefit from an audible bell.
Author
Owner

@zadjii-msft commented on GitHub (Sep 13, 2022):

I'm not totally opposed to this, for sure. Seems like it's got great potential. But we'd need to figure out how the settings should be expressed.

Initial guess:

"visualBell": {
  "duration": 200,
  "color": "#ff0000",
  "intensity": 80,
  "backgroundImage": "walt.gif",
  "backgroundImageOpacity": 25
}

And those would only apply if you've got visual bells enabled. Idk. Just a thought.

If someone wants to come along and help define this, I'd be all ears.

@zadjii-msft commented on GitHub (Sep 13, 2022): I'm not totally opposed to this, for sure. Seems like it's got great potential. But we'd need to figure out how the settings should be expressed. Initial guess: ```json "visualBell": { "duration": 200, "color": "#ff0000", "intensity": 80, "backgroundImage": "walt.gif", "backgroundImageOpacity": 25 } ``` And those would only apply if you've got visual bells enabled. Idk. Just a thought. If someone wants to come along and help define this, I'd be all ears.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#18381