diff --git a/src/terminal/parser/OutputStateMachineEngine.cpp b/src/terminal/parser/OutputStateMachineEngine.cpp index 538c7a0fccb..89aefd4de77 100644 --- a/src/terminal/parser/OutputStateMachineEngine.cpp +++ b/src/terminal/parser/OutputStateMachineEngine.cpp @@ -171,22 +171,6 @@ bool OutputStateMachineEngine::ActionEscDispatch(const wchar_t wch, { switch (wch) { - case VTActionCodes::CUU_CursorUp: - success = _dispatch->CursorUp(1); - TermTelemetry::Instance().Log(TermTelemetry::Codes::CUU); - break; - case VTActionCodes::CUD_CursorDown: - success = _dispatch->CursorDown(1); - TermTelemetry::Instance().Log(TermTelemetry::Codes::CUD); - break; - case VTActionCodes::CUF_CursorForward: - success = _dispatch->CursorForward(1); - TermTelemetry::Instance().Log(TermTelemetry::Codes::CUF); - break; - case VTActionCodes::CUB_CursorBackward: - success = _dispatch->CursorBackward(1); - TermTelemetry::Instance().Log(TermTelemetry::Codes::CUB); - break; case VTActionCodes::DECSC_CursorSave: success = _dispatch->CursorSaveState(); TermTelemetry::Instance().Log(TermTelemetry::Codes::DECSC); diff --git a/src/terminal/parser/ut_parser/OutputEngineTest.cpp b/src/terminal/parser/ut_parser/OutputEngineTest.cpp index 54e1b0377ba..719c4efcc7c 100644 --- a/src/terminal/parser/ut_parser/OutputEngineTest.cpp +++ b/src/terminal/parser/ut_parser/OutputEngineTest.cpp @@ -966,30 +966,6 @@ class StateMachineExternalTest final return true; } - void TestEscCursorMovement(wchar_t const wchCommand, - const bool* const pfFlag, - StateMachine& mach, - StatefulDispatch& dispatch) - { - mach.ProcessCharacter(AsciiChars::ESC); - mach.ProcessCharacter(wchCommand); - - VERIFY_IS_TRUE(*pfFlag); - VERIFY_ARE_EQUAL(dispatch._cursorDistance, 1u); - } - - TEST_METHOD(TestEscCursorMovement) - { - auto dispatch = std::make_unique(); - auto pDispatch = dispatch.get(); - auto engine = std::make_unique(std::move(dispatch)); - StateMachine mach(std::move(engine)); - TestEscCursorMovement(L'A', &pDispatch->_cursorUp, mach, *pDispatch); - TestEscCursorMovement(L'B', &pDispatch->_cursorDown, mach, *pDispatch); - TestEscCursorMovement(L'C', &pDispatch->_cursorForward, mach, *pDispatch); - TestEscCursorMovement(L'D', &pDispatch->_cursorBackward, mach, *pDispatch); - } - void InsertNumberToMachine(StateMachine* const pMachine, size_t number) { static const size_t cchBufferMax = 20;