Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial support for VT DCS sequences #6328

Merged
merged 19 commits into from
Aug 17, 2020
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/actions/spell-check/dictionary/dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -99401,6 +99401,8 @@ DCP
DCPR
DCPSK
DCS
Dcs
dcs
DCT
DCTN
DCTS
Expand Down
6 changes: 6 additions & 0 deletions src/terminal/parser/OutputStateMachineEngine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,12 @@ bool OutputStateMachineEngine::ActionPassThroughString(const std::wstring_view s
bool OutputStateMachineEngine::ActionEscDispatch(const wchar_t wch,
const gsl::span<const wchar_t> intermediates)
{
if (wch == L'\\')
{
// This is presumably the 7-bit string terminator, which is essentially a no-op.
return true;
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just realised now that this should also be checking that intermediates is empty, otherwise it'll be matching sequences with an intermediate - like ESC sp \ - which it really shouldn't be. It's not that big a deal, and I'll probably end up moving this into the main switch with an actual action code once PR #7304 is merged, but it wouldn't harm to add an intermediate check here in the mean time.

bool success = false;

// no intermediates.
Expand Down
Loading