8000 Update ControlSequenceLength to handle colon VT param separators by jazzdelightsme · Pull Request #14942 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Update ControlSequenceLength to handle colon VT param separators #14942

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

Merged
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -2654,7 +2654,7 @@ internal static void SetConsoleTextAttribute(ConsoleHandle consoleHandle, WORD a
// CSI params? '#' 769C [{}pq] // XTPUSHSGR ('{'), XTPOPSGR ('}'), or their aliases ('p' and 'q')
//
// Where:
// params: digit+ (';' params)?
// params: digit+ ((';' | ':') params)?
// CSI: C0_CSI | C1_CSI
// C0_CSI: \x001b '[' // ESC '['
// C1_CSI: \x009b
Expand Down Expand Up @@ -2699,7 +2699,7 @@ internal static int ControlSequenceLength(string str, ref int offset)
{
c = str[offset++];
}
while ((offset < str.Length) && (char.IsDigit(c) || c == ';'));
while ((offset < str.Length) && (char.IsDigit(c) || (c == ';') || (c == ':')));

// Finally, handle the command characters for the specific sequences we
// handle:
Expand Down
0