Skip to content

Commit 399b3a2

Browse files
zaide-chrisSBoudrias
authored andcommitted
Fix BottomBar.log.write not working (#486)
Fixes #485
1 parent 19cc6e0 commit 399b3a2

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Diff for: lib/ui/bottom-bar.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,18 @@ Prompt.prototype.updateBottomBar = function (bottomBar) {
6060
};
6161

6262
/**
63-
* Rerender the prompt
63+
* Write out log data
64+
* @param {String} data - The log data to be output
6465
* @return {Prompt} self
6566
*/
6667

6768
Prompt.prototype.writeLog = function (data) {
68-
rlUtils.clearLine(this.rl, 1);
69+
this.rl.output.unmute();
70+
this.clean();
6971
this.rl.output.write(this.enforceLF(data.toString()));
70-
return this.render();
72+
this.render();
73+
this.rl.output.mute();
74+
return this;
7175
};
7276

7377
/**

0 commit comments

Comments
 (0)