From b3cab0f2a093db5abc774824a02ee090745af89c Mon Sep 17 00:00:00 2001 From: Derek Wickern Date: Thu, 11 Dec 2014 08:17:21 -0800 Subject: [PATCH] Fix logger not overwriting the previous line in alternate shells When running the 'update' task in bash, the output is all collapsed onto one line. On Windows, even using an ANSI capable shell, running 'update' spams the console. Tested with dash in Ubuntu; ANSICON, Console2 and ConsoleZ in Windows. --- util/log/src/main/scala/sbt/ConsoleOut.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/log/src/main/scala/sbt/ConsoleOut.scala b/util/log/src/main/scala/sbt/ConsoleOut.scala index 41367757b..3ce0d8cdf 100644 --- a/util/log/src/main/scala/sbt/ConsoleOut.scala +++ b/util/log/src/main/scala/sbt/ConsoleOut.scala @@ -16,7 +16,7 @@ object ConsoleOut { cur.contains(s) && prev.contains(s) /** Move to beginning of previous line and clear the line. */ - private[this] final val OverwriteLine = "\r\u001BM\u001B[2K" + private[this] final val OverwriteLine = "\u001B[A\r\u001B[2K" /** * ConsoleOut instance that is backed by System.out. It overwrites the previously printed line