Fixed incorrect parsing of the Erase In Line ANSI code.

All credits go to nsadeveloper789 for the patch.
This commit is contained in:
Thompson Lee
2023-02-23 11:41:13 -05:00
committed by Dan
parent fc4f3d0e45
commit 7d47210465
@@ -365,6 +365,9 @@ public class AnsiBufferedInputStream extends InputStream {
protected int parseNumericBuffer() {
String numeric = readAndClearEscBuf();
if (numeric.isEmpty()) {
return 0;
}
int result = Integer.parseInt(numeric);
return result;
}