Fix in TermDisplay

This commit is contained in:
Alexandre Archambault 2015-12-30 01:34:34 +01:00
parent 22f8626e61
commit 6e2905d905
1 changed files with 10 additions and 0 deletions

View File

@ -70,6 +70,16 @@ class TermDisplay(out: Writer) extends Logger {
out.write(s"$url0 $extra0\n")
}
if (downloads0.length < lineCount) {
for (_ <- downloads0.length until lineCount) {
ansi.clearLine(2)
ansi.down(1)
}
for (_ <- downloads0.length until lineCount)
ansi.up(1)
}
for (_ <- downloads0.indices)
ansi.up(1)