sbt/internal/util-logging
Ethan Atkins 9e0cd4cde6 Clear prompt only if there are no bytes pending
When sbt is running a background process that logs to stdout, the output
can be inadvertently deleted before it has been printed. When the user
is in the prompt state and a log message comes in, we want to delete the
prompt before we print the log. The problem is println is often
implemented with a write of the content followed by a second write of
the system line separator. When that happened, we would print the
content and then immediately delete it when the newline came in. The fix
is to not clear the prompt if there are any bytes that have been written
without a newline, which was tracked by the currentLineBytes variable.
2020-09-25 10:38:33 -07:00
..
src Clear prompt only if there are no bytes pending 2020-09-25 10:38:33 -07:00
NOTICE move modules around. 2015-08-20 00:59:57 -04:00