Skip to content

Commit

Permalink
Passthrough BEL in conpty (#2990)
Browse files Browse the repository at this point in the history
🔔
[insert Chorus of the Bells here -DHowett]

Fixes #2952.

(cherry picked from commit 6831120)
  • Loading branch information
zadjii-msft authored and DHowett committed Oct 17, 2019
1 parent f07c9a6 commit bb6ae44
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/terminal/parser/OutputStateMachineEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit bb6ae44

Please sign in to comment.