Closed lacasseio closed 7 years ago
@chirino Would you be willing to accept and pushing the previous fix quickly? This is blocking the https://github.com/gradle/gradle/issues/882 for us and it would be a waste if we would need to fork the repo just to do the fix.
I opened a PR that fix the problem.
I will reopen as the issue still exists in Jansi, workaround was done in Gradle.
The method
processDownCursor
can overflow the cursor position by potentially setting the cursor toinfo.size.y
which is an invalid position. This will cause anERROR_INVALID_PARAMETER
error to be returned fromSetConsoleCursorPosition
.The solution (not yet tested) to this last issue would be to replace
processCursorDown
with the following code:For more information, see this comment on https://github.com/gradle/gradle/issues/882.