We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dcecd65 + c48e4f7 commit 971eef9Copy full SHA for 971eef9
lib/node-progress.js
@@ -142,6 +142,10 @@ ProgressBar.prototype.render = function (tokens) {
142
143
/* compute the available space (non-zero) for the bar */
144
var availableSpace = Math.max(0, this.stream.columns - str.replace(':bar', '').length);
145
+ if(availableSpace && process.platform === 'win32'){
146
+ availableSpace = availableSpace - 1;
147
+ }
148
+
149
var width = Math.min(this.width, availableSpace);
150
151
/* TODO: the following assumes the user has one ':bar' token */
0 commit comments