Merge pull request #6112 from eatkins/supershell-interlace

Fix supershell line interlacing with logs
This commit is contained in:
eugene yokota 2020-11-18 15:15:19 -05:00 committed by GitHub
commit 1ea0fb7d23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -100,7 +100,10 @@ private[sbt] final class ProgressState(
toWrite ++= (DeleteLine + ClearScreenAfterCursor + CursorLeft1000).getBytes("UTF-8")
case _ =>
}
toWrite ++= bytes
bytes.foreach { b =>
if (b == 10) toWrite ++= ClearScreenAfterCursor.getBytes("UTF-8")
toWrite += b
}
toWrite ++= ClearScreenAfterCursor.getBytes("UTF-8")
if (bytes.endsWith(lineSeparatorBytes)) {
if (progressLines.get.nonEmpty) {