Print ClearScreenAfterCursor on shutdown

There are scenarios in which sbt can leave behind stray progress lines
after it exits. This attempts to delete them.
This commit is contained in:
Ethan Atkins 2020-07-19 12:02:45 -07:00
parent d53ebaa686
commit cd26abd656
1 changed files with 3 additions and 0 deletions

View File

@ -102,7 +102,10 @@ private[sbt] object xMain {
}
}
} finally {
// Clear any stray progress lines
ShutdownHooks.close()
System.out.print(ConsoleAppender.ClearScreenAfterCursor)
System.out.flush()
}
}