microsoft / terminal

The new Windows Terminal and the original Windows console host, all in the same place!
MIT License
95.44k stars 8.3k forks source link

Custom Visual Bell #13923

Open vanoreo opened 2 years ago

vanoreo commented 2 years ago

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

TSheahan commented 2 years ago

AKA the jumpscare bell.

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

zadjii-msft commented 2 years ago

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.