Update ControlSequenceLength to handle colon as a VT parameter separator (#14942)

This commit is contained in:
Dan Thompson
2021-05-06 09:24:33 -07:00
committed by GitHub
parent efdc500ba5
commit 32a38fcac3
@@ -2654,7 +2654,7 @@ namespace Microsoft.PowerShell
// CSI params? '#' [{}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
@@ -2699,7 +2699,7 @@ namespace Microsoft.PowerShell
{
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: