Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: dm/DMReporter.cpp

Issue 109513002: make tests output spin on the same line by default (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: more refactoring Created 6 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | gyp/dm.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DMReporter.cpp
diff --git a/dm/DMReporter.cpp b/dm/DMReporter.cpp
index 31310d1cd9a70cbf7610ed03ae7fa91c454182d8..0fd83e5bb656a1406cd6842a55185a4df8b96f45 100644
--- a/dm/DMReporter.cpp
+++ b/dm/DMReporter.cpp
@@ -1,6 +1,7 @@
#include "DMReporter.h"
#include "SkCommandLineFlags.h"
+#include "OverwriteLine.h"
DEFINE_bool(quiet, false, "If true, don't print status updates.");
@@ -12,7 +13,7 @@ void Reporter::updateStatusLine() const {
}
SkString status;
- status.printf("\r\033[K%d tasks left", this->started() - this->finished());
+ status.printf("%s%d tasks left", kSkOverwriteLine, this->started() - this->finished());
const int failed = this->failed();
if (failed > 0) {
status.appendf(", %d failed", failed);
« no previous file with comments | « no previous file | gyp/dm.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698