Correctly use CARRIAGE_RETURN from Console

This commit is contained in:
Sashko Stubailo
2014-12-15 23:34:59 -08:00
parent 4bfb2f7780
commit ddfebbb1b5

View File

@@ -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 {