protected void execEraseInLine() {
		switch (parseNumericBuffer()) {
			case 0:
				Arrays.fill(lineBuf.array(), lineBuf.position(), lineBuf.capacity(), (byte) 0);
				break;
			case 1:
				Arrays.fill(lineBuf.array(), 0, lineBuf.position() + 1, (byte) 0);
				break;
			case 2:
				Arrays.fill(lineBuf.array(), (byte) 0);
				break;
		}
	}
There's not really a good way to know if any trailing space was intentional. For GDB/MI, that
doesn't really matter.
Ghidra/Framework/Pty/src/main/java/ghidra/pty/windows/AnsiBufferedInputStream.java