terminal/src/cascadia/TerminalApp
James Holderness 09cc5f492c
Add support for the BEL control in Windows Terminal (#7679)
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
2020-09-30 18:00:06 -07:00
..
dll Revert "Update to a newer MUX prerelease; remove workaround for compact sizing (#7447)" 2020-09-08 09:25:30 -07:00
Resources/en-US Open up content dialogs for invalid URIs and unsupported schemes (#7523) 2020-09-10 17:55:36 -07:00
ActionAndArgs.cpp Add serialization error handling to settings projection layer (#7576) 2020-09-10 17:57:02 -07:00
ActionAndArgs.h Add serialization error handling to settings projection layer (#7576) 2020-09-10 17:57:02 -07:00
ActionArgs.cpp Make index in closeOtherTabs and closeTabsAfter optional (#7390) 2020-08-25 19:25:25 +00:00
ActionArgs.h Add serialization error handling to settings projection layer (#7576) 2020-09-10 17:57:02 -07:00
ActionArgs.idl Make index in closeOtherTabs and closeTabsAfter optional (#7390) 2020-08-25 19:25:25 +00:00
App.base.h Apply a GDI region to the top level Island window to allow dragging with a single Island (#929) 2019-06-25 13:06:11 -07:00
App.cpp Make Terminal look great in High Contrast (#6833) 2020-07-08 12:08:08 -07:00
App.h Break everything out of App except Xaml platform init (#3465) 2019-11-07 13:10:58 -08:00
App.idl Fix intellisense errors by moving TerminalApp projects around (#6897) 2020-08-20 22:44:37 +00:00
App.xaml Replace the HRGN-based titlebar cutout with an overlay window (#5485) 2020-04-24 15:22:40 -07:00
AppActionHandlers.cpp Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
AppCommandlineArgs.cpp Add support for running a wt commandline in the curent window WITH A KEYBINDING (#6537) 2020-07-17 21:05:29 +00:00
AppCommandlineArgs.h Add support for running a wt commandline in the curent window WITH A KEYBINDING (#6537) 2020-07-17 21:05:29 +00:00
AppKeyBindings.cpp Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
AppKeyBindings.h Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
AppKeyBindings.idl Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
AppLogic.cpp Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
AppLogic.h Make CascadiaSettings a WinRT object (#7457) 2020-09-09 20:49:53 +00:00
AppLogic.idl Make GlobalAppSettings a WinRT object (#7349) 2020-08-28 03:49:16 +00:00
AzureCloudShellGenerator.cpp Remove AcrylicOpacity from AzureCloudShellGenerator (#7573) 2020-09-09 00:13:53 +00:00
AzureCloudShellGenerator.h Make Profile a WinRT object (#7283) 2020-08-28 01:09:22 +00:00
CascadiaSettings.cpp Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
CascadiaSettings.h Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
CascadiaSettings.idl Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
CascadiaSettingsSerialization.cpp Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
ColorHelper.cpp Fix a few minor typos from #3789 (#5740) 2020-05-04 16:47:29 -05:00
ColorHelper.h Add support for setting a tab's color at runtime w/ context menu (#3789) 2020-05-04 20:57:12 +00:00
ColorPickupFlyout.cpp Add support for setting a tab's color at runtime w/ context menu (#3789) 2020-05-04 20:57:12 +00:00
ColorPickupFlyout.h Add support for setting a tab's color at runtime w/ context menu (#3789) 2020-05-04 20:57:12 +00:00
ColorPickupFlyout.idl Add support for setting a tab's color at runtime w/ context menu (#3789) 2020-05-04 20:57:12 +00:00
ColorPickupFlyout.xaml Update colour picker buttons with round edges. (#7305) 2020-08-18 00:21:11 +00:00
ColorScheme.cpp Update ColorScheme with Json Serializer and color table API (#7609) 2020-09-17 11:27:46 -07:00
ColorScheme.h Update ColorScheme with Json Serializer and color table API (#7609) 2020-09-17 11:27:46 -07:00
ColorScheme.idl Update ColorScheme with Json Serializer and color table API (#7609) 2020-09-17 11:27:46 -07:00
Command.cpp Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
Command.h Add serialization error handling to settings projection layer (#7576) 2020-09-10 17:57:02 -07:00
Command.idl Add icons to commands in the Command Palette (#7368) 2020-08-21 18:08:02 +00:00
Commandline.cpp Add support for commandline args to wt.exe (#4023) 2020-01-27 15:34:12 +00:00
Commandline.h Add support for commandline args to wt.exe (#4023) 2020-01-27 15:34:12 +00:00
CommandPalette.cpp Give Tab ownership of its SwitchToTab command (#7659) 2020-09-17 17:13:11 -07:00
CommandPalette.h Give Tab ownership of its SwitchToTab command (#7659) 2020-09-17 17:13:11 -07:00
CommandPalette.idl Provide global setting to use ATS for nextTab and prevTab (#7321) 2020-08-21 15:39:40 +00:00
CommandPalette.xaml Add icons to commands in the Command Palette (#7368) 2020-08-21 18:08:02 +00:00
DebugTapConnection.cpp Fixed #3799: Introduce sendInput command (#7249) 2020-08-12 13:46:53 +00:00
DebugTapConnection.h Add explicit identifier to some constructors (#5652) 2020-04-29 16:50:47 -07:00
DefaultProfileUtils.cpp Make Profile a WinRT object (#7283) 2020-08-28 01:09:22 +00:00
DefaultProfileUtils.h Make Profile a WinRT object (#7283) 2020-08-28 01:09:22 +00:00
defaults-universal.json Bind the command palette by default (#7384) 2020-08-24 15:44:36 -07:00
defaults.json Make index in closeOtherTabs and closeTabsAfter optional (#7390) 2020-08-25 19:25:25 +00:00
EmptyStringVisibilityConverter.cpp Add some polish to nested commands in the command palette (#7299) 2020-08-18 19:32:17 +00:00
EmptyStringVisibilityConverter.h Add some polish to nested commands in the command palette (#7299) 2020-08-18 19:32:17 +00:00
EmptyStringVisibilityConverter.idl Add some polish to nested commands in the command palette (#7299) 2020-08-18 19:32:17 +00:00
GlobalAppSettings.cpp Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
GlobalAppSettings.h Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
GlobalAppSettings.idl Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
HasNestedCommandsVisibilityConverter.cpp Add some polish to nested commands in the command palette (#7299) 2020-08-18 19:32:17 +00:00
HasNestedCommandsVisibilityConverter.h Add some polish to nested commands in the command palette (#7299) 2020-08-18 19:32:17 +00:00
HasNestedCommandsVisibilityConverter.idl Add some polish to nested commands in the command palette (#7299) 2020-08-18 19:32:17 +00:00
IDirectKeyListener.idl Pass the scancode in our tunneled DirectKey event (#7298) 2020-08-14 23:44:39 +00:00
IDynamicProfileGenerator.h Make Profile a WinRT object (#7283) 2020-08-28 01:09:22 +00:00
init.cpp Introduce a WinRT utils library and "checked resources" (#3350) 2019-11-01 15:47:05 -07:00
JsonUtils.h Update ColorScheme with Json Serializer and color table API (#7609) 2020-09-17 11:27:46 -07:00
Jumplist.cpp Normalize file paths before handing them to the jumplist (#7711) 2020-09-23 16:30:57 -07:00
Jumplist.h Make CascadiaSettings a WinRT object (#7457) 2020-09-09 20:49:53 +00:00
KeyChordSerialization.cpp Add menu (also known as "app") as a bindable key (#7328) 2020-08-18 17:21:50 +00:00
KeyChordSerialization.h Move ICore/ControlSettings to TerminalControl project (#7167) 2020-08-07 14:46:52 +00:00
KeyMapping.cpp Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
KeyMapping.h Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
KeyMapping.idl Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
KeyMappingSerialization.cpp Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
LegacyProfileGeneratorNamespaces.h Create Telnet connection type and default loopback profile for… (#3858) 2019-12-09 11:07:08 -08:00
MinMaxCloseControl.cpp Get rid of the padding above the tab row when maximized (#5881) 2020-05-21 22:26:37 +00:00
MinMaxCloseControl.h Propagate window style changes to the titlebar and minmax (#3025) 2019-10-02 10:27:07 -07:00
MinMaxCloseControl.idl Fix intellisense errors by moving TerminalApp projects around (#6897) 2020-08-20 22:44:37 +00:00
MinMaxCloseControl.xaml Animate Hover state change of CaptionButtons (#6303) 2020-06-02 18:50:18 +00:00
packages.config Revert "Update to a newer MUX prerelease; remove workaround for compact sizing (#7447)" 2020-09-08 09:25:30 -07:00
Pane.cpp Make CascadiaSettings a WinRT object (#7457) 2020-09-09 20:49:53 +00:00
Pane.h Add a togglePaneZoom action for zooming a pane (#6989) 2020-08-07 16:11:44 -07:00
Pane.LayoutSizeNode.cpp Snap to character grid when resizing window (#3181) 2020-01-08 13:19:23 -08:00
pch.cpp Initial release of the Windows Terminal source code 2019-05-02 15:29:04 -07:00
pch.h Fix intellisense errors by moving TerminalApp projects around (#6897) 2020-08-20 22:44:37 +00:00
PowershellCoreProfileGenerator.cpp Make Profile a WinRT object (#7283) 2020-08-28 01:09:22 +00:00
PowershellCoreProfileGenerator.h Make Profile a WinRT object (#7283) 2020-08-28 01:09:22 +00:00
Profile.cpp Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
Profile.h Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
Profile.idl Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
SettingsTypes.h Make GlobalAppSettings a WinRT object (#7349) 2020-08-28 03:49:16 +00:00
ShortcutActionDispatch.cpp Provide global setting to use ATS for nextTab and prevTab (#7321) 2020-08-21 15:39:40 +00:00
ShortcutActionDispatch.h Provide global setting to use ATS for nextTab and prevTab (#7321) 2020-08-21 15:39:40 +00:00
ShortcutActionDispatch.idl Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
Tab.cpp Give Tab ownership of its SwitchToTab command (#7659) 2020-09-17 17:13:11 -07:00
Tab.h Give Tab ownership of its SwitchToTab command (#7659) 2020-09-17 17:13:11 -07:00
Tab.idl Give Tab ownership of its SwitchToTab command (#7659) 2020-09-17 17:13:11 -07:00
TabRowControl.cpp Upgrade to Microsoft.UI.Xaml 2.2 (#3027) 2019-10-14 22:41:43 -07:00
TabRowControl.h Upgrade to Microsoft.UI.Xaml 2.2 (#3027) 2019-10-14 22:41:43 -07:00
TabRowControl.idl Upgrade to Microsoft.UI.Xaml 2.2 (#3027) 2019-10-14 22:41:43 -07:00
TabRowControl.xaml Update colors of our custom NewTab button to match MUX's TabView (#6812) 2020-07-07 13:40:01 -07:00
TelnetGenerator.h Make Profile a WinRT object (#7283) 2020-08-28 01:09:22 +00:00
TerminalAppLib.vcxproj Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
TerminalAppLib.vcxproj.filters Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
TerminalPage.cpp Add support for the BEL control in Windows Terminal (#7679) 2020-09-30 18:00:06 -07:00
TerminalPage.h Add support for the BEL control in Windows Terminal (#7679) 2020-09-30 18:00:06 -07:00
TerminalPage.idl Add support for "Always on top" mode (#6903) 2020-07-14 21:02:18 +00:00
TerminalPage.xaml Wrap the textblock containing the "invalid" URI (#7694) 2020-09-21 12:39:10 -07:00
TerminalSettings.cpp Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
TerminalSettings.h Introduce KeyMapping and Move TerminalSettings construction (#7537) 2020-09-14 20:38:56 +00:00
TerminalSettings.idl Move ICore/ControlSettings to TerminalControl project (#7167) 2020-08-07 14:46:52 +00:00
TerminalSettingsSerializationHelpers.h Update ColorScheme with Json Serializer and color table API (#7609) 2020-09-17 11:27:46 -07:00
TerminalWarnings.h Add serialization error handling to settings projection layer (#7576) 2020-09-10 17:57:02 -07:00
TerminalWarnings.idl Add serialization error handling to settings projection layer (#7576) 2020-09-10 17:57:02 -07:00
TitlebarControl.cpp Add support for setting a tab's color at runtime w/ context menu (#3789) 2020-05-04 20:57:12 +00:00
TitlebarControl.h Add support for setting a tab's color at runtime w/ context menu (#3789) 2020-05-04 20:57:12 +00:00
TitlebarControl.idl Upgrade to Microsoft.UI.Xaml 2.2 (#3027) 2019-10-14 22:41:43 -07:00
TitlebarControl.xaml Upgrade to Microsoft.UI.Xaml 2.2 (#3027) 2019-10-14 22:41:43 -07:00
userDefaults.json Update userDefaults from "keybindings" to "actions" (#7692) 2020-09-21 12:39:27 -07:00
Utils.cpp Fixed #3799: Introduce sendInput command (#7249) 2020-08-12 13:46:53 +00:00
Utils.h Fixed #3799: Introduce sendInput command (#7249) 2020-08-12 13:46:53 +00:00
WslDistroGenerator.cpp Make Profile a WinRT object (#7283) 2020-08-28 01:09:22 +00:00
WslDistroGenerator.h Make Profile a WinRT object (#7283) 2020-08-28 01:09:22 +00:00