Fixed: Ensure CSI parameter value is not greater than `9999` as per vt510

This commit is contained in:
agnostic-apollo 2022-06-15 04:05:34 +05:00
parent 4c47f4f732
commit e92a6db06b
1 changed files with 2 additions and 0 deletions

View File

@ -2136,6 +2136,8 @@ public final class TerminalEmulator {
} else {
value = thisDigit;
}
if (value > 9999)
value = 9999;
mArgs[mArgIndex] = value;
}
continueSequence(mEscapeState);