From ddfebbb1b597560f0053dc0b32104c82402130bd Mon Sep 17 00:00:00 2001 From: Sashko Stubailo Date: Mon, 15 Dec 2014 23:34:59 -0800 Subject: [PATCH] Correctly use CARRIAGE_RETURN from Console --- tools/run-log.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/run-log.js b/tools/run-log.js index 738dcc4180..f864b99f18 100644 --- a/tools/run-log.js +++ b/tools/run-log.js @@ -72,7 +72,7 @@ _.extend(RunLog.prototype, { if (self.temporaryMessageLength) { var spaces = new Array(self.temporaryMessageLength + 1).join(' '); - process.stdout.write(spaces + CARRIAGE_RETURN); + process.stdout.write(spaces + Console.CARRIAGE_RETURN); self.temporaryMessageLength = null; } }, @@ -136,7 +136,7 @@ _.extend(RunLog.prototype, { var self = this; self._clearSpecial(); - process.stdout.write(msg + CARRIAGE_RETURN); + process.stdout.write(msg + Console.CARRIAGE_RETURN); self.temporaryMessageLength = msg.length; }, @@ -146,7 +146,7 @@ _.extend(RunLog.prototype, { if (self.consecutiveRestartMessages) { // replace old message in place. this assumes that the new restart message // is not shorter than the old one. - process.stdout.write(CARRIAGE_RETURN); + process.stdout.write(Console.CARRIAGE_RETURN); self.messages.pop(); self.consecutiveRestartMessages ++; } else { @@ -173,7 +173,7 @@ _.extend(RunLog.prototype, { if (self.consecutiveClientRestartMessages) { // replace old message in place. this assumes that the new restart message // is not shorter than the old one. - process.stdout.write(CARRIAGE_RETURN); + process.stdout.write(Console.CARRIAGE_RETURN); self.messages.pop(); self.consecutiveClientRestartMessages ++; } else {