Skip to content

Commit

Permalink
Make sure WT parser always prepared to accept C1.
Browse files Browse the repository at this point in the history
  • Loading branch information
j4james committed Nov 9, 2021
1 parent da2ccd6 commit 4dc757c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/cascadia/TerminalCore/Terminal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ Terminal::Terminal() :

_stateMachine = std::make_unique<StateMachine>(std::move(engine));

// Until we have a true pass-through mode, the decision as to whether C1
// controls are interpreted or not is made at the conhost level. If they
// are being filtered out, then we will simply never receive them. But if
// they are being accepted by conhost, there's a chance they may get passed
// through in some situations, so it's important that our state machine is
// always prepared to accept them.
_stateMachine->SetParserMode(StateMachine::Mode::AcceptC1, true);

auto passAlongInput = [&](std::deque<std::unique_ptr<IInputEvent>>& inEventsToWrite) {
if (!_pfnWriteInput)
{
Expand Down

0 comments on commit 4dc757c

Please # to comment.