Skip to content
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

Add a setting to configure the audible bell #7793

Merged
merged 7 commits into from
Oct 15, 2020

Conversation

zadjii-msft
Copy link
Member

@zadjii-msft zadjii-msft commented Oct 1, 2020

Summary of the Pull Request

Adds a new setting, bellStyle, to be able to disable the audible bell added in #7679. Currently, this setting accepts two values:

  • audible: play a noise on a bell
  • none: Don't play a noise.

In the future, we can add a "bellStyle": "visible" for flashing the Terminal instead of making a noise on bell.

References

PR Checklist

Detailed Description of the Pull Request / Additional comments

FOR DISCUSSION: Should bellStyle just be bell?

Validation Steps Performed

Pressing Ctrl+G in cmd, and hitting enter is an easy way of triggering a bell. I set the setting to none, and presto, the bell stopped.

@ghost ghost added Area-Settings Issues related to settings and customizability, for console or terminal Area-VT Virtual Terminal sequence support Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal. labels Oct 1, 2020
@@ -76,6 +76,7 @@ namespace winrt::TerminalApp::implementation
GETSET_PROPERTY(bool, StartOnUserLogin, false);
GETSET_PROPERTY(bool, AlwaysOnTop, false);
GETSET_PROPERTY(bool, UseTabSwitcher, true);
GETSET_PROPERTY(winrt::TerminalApp::BellStyle, BellStyle, winrt::TerminalApp::BellStyle::Audible);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚨 Carlos, this will be a conflict for you

Copy link
Member

@DHowett DHowett left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect. Do we want it to be per-profile?

This will have an interesting effect on some applications, and users may be confused by it. There's some applications that emit their own bells using the same API, and people may be upset that we can't suppress them.

Not a complaint, just something to be aware of!

@DHowett
Copy link
Member

DHowett commented Oct 1, 2020

This could eventually be a flag mapper (bellStyle: [audible, visible])

Copy link
Contributor

@PankajBhojwani PankajBhojwani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted this the moment I saw #7679

Copy link
Member

@carlos-zamora carlos-zamora left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the docs and schema!

Also, please make my life easier and wait until after #7667 merges.

@ghost ghost added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Oct 2, 2020
zadjii-msft added a commit to MicrosoftDocs/terminal that referenced this pull request Oct 5, 2020
@ghost ghost removed the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Oct 5, 2020
…isable-bell

# Conflicts:
#	src/cascadia/TerminalSettingsModel/GlobalAppSettings.idl
…isable-bell

# Conflicts:
#	src/cascadia/TerminalSettingsModel/GlobalAppSettings.cpp
#	src/cascadia/TerminalSettingsModel/GlobalAppSettings.h
#	src/cascadia/TerminalSettingsModel/GlobalAppSettings.idl
#	src/cascadia/TerminalSettingsModel/defaults.json
@zadjii-msft zadjii-msft dismissed carlos-zamora’s stale review October 15, 2020 21:11

I updated the docs and schema

@zadjii-msft zadjii-msft removed their assignment Oct 15, 2020
"bellStyle": {
"default": "audible",
"description": "Controls what happens when the application emits a BEL character. When set to \"audible\", the Terminal will play a sound. When set to \"none\", nothing will happen.",
"$ref": "#/definitions/BellStyle"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'm glad it caught this b/c it wouldn't have been a valid schema otherwise!@ 😉

@DHowett DHowett changed the title Add a setting to be able to disable the audible bell Add a setting to configure the audible bell Oct 15, 2020
@DHowett DHowett merged commit 98806e2 into master Oct 15, 2020
@DHowett DHowett deleted the dev/migrie/f/2360-disable-bell branch October 15, 2020 22:27
carlos-zamora added a commit that referenced this pull request Oct 30, 2020
## Summary of the Pull Request
Since we've started working on the Settings UI, a few settings have been added on `main`. This adds those missing settings over. 

## References
Missing settings include...
- #7364: `disableAnimations`
- #7873: `launchMode` `focus` and `maximizedFocus`
- #7793: `bellStyle`

## Validation Steps Performed
Verified that those settings appear properly in the Settings UI.
@ghost
Copy link

ghost commented Nov 11, 2020

🎉Windows Terminal Preview v1.5.3142.0 has been released which incorporates this pull request.:tada:

Handy links:

@ghost ghost mentioned this pull request Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Settings Issues related to settings and customizability, for console or terminal Area-VT Virtual Terminal sequence support Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature Request: disable bell
5 participants