Passthrough BEL in conpty (#2990)

🔔
[insert Chorus of the Bells here -DHowett]

Fixes #2952.
This commit is contained in:
Mike Griese 2019-09-30 17:38:52 -05:00 committed by Dustin L. Howett (MSFT)
parent 52534c94cc
commit 6831120755

View file

@ -44,6 +44,17 @@ bool OutputStateMachineEngine::ActionExecute(const wchar_t wch)
{
_dispatch->Execute(wch);
_ClearLastChar();
if (wch == AsciiChars::BEL)
{
// microsoft/terminal#2952
// If we're attached to a terminal, let's also pass the BEL through.
if (_pfnFlushToTerminal != nullptr)
{
_pfnFlushToTerminal();
}
}
return true;
}