-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
Make terminal beeps highlight Windows Terminal in the taskbar, to get user attention when backgrounded #1608
Comments
Yep, we should have some bell support. This also requires us to push bells through the conpty layer. 😄 |
Does this include audible bells? Because I can't for the life of me get audible bells to work. |
@tstackhouse yes it does. |
This commit makes the Windows Terminal play an audible sound when the `BEL` control character is output. The `BEL` control was already being forwarded through conpty, so it was just a matter of hooking up the `WarningBell` dispatch method to actually play a sound. I've used the `PlaySound` API to output the sound configured for the "Critical Stop" system event (aka _SystemHand_), since that is the sound used in conhost. ## Validation I've manually confirmed that the terminal produces the expected sound when executing `echo ^G` in a cmd shell, or `printf "\a"` in a WSL bash shell. References: * There is a separate issue (#1608) to deal with configuring the `BEL` to trigger visual forms of notification. * There is also an issue (#2360) requesting an option to disable the `BEL`. Closes #4046
FYI there is a system-wide option called Show audio alerts visually, which you can set to flash the window border (or even the whole screen), when the bell is triggered. It's probably not exactly what you want, but it may do as temporary solution. |
The terminal taskbar icon can now flash when the BEL sequence is emitted, to let the user know something needs their attention. The `BellStyle` setting can now be set to `audible`, `visual` or both or none. When the pane receives a BEL event and the `bellStyle` includes `visual`, we bubble the event up all the way to `AppHost` to handle flashing the taskbar. Closes #1608
Scenario
A long running task is running in the Terminal. The user is using another app.
Something happens requiring attention from the user.
What happens now
The terminal beeps, but the user doesn't know about it, and doesn't see the issue.
What should happen
The taskbar item becomes highlighted, showing that the terminal needs attention (optionally this can be disabled).
The text was updated successfully, but these errors were encountered: