Skip to content

Commit

Permalink
Set the wrap-ansi hard option to true
Browse files Browse the repository at this point in the history
See #21
  • Loading branch information
sindresorhus committed Jul 23, 2017
1 parent 5c23d96 commit 0b7bad7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const main = stream => {
const render = function () {
cliCursor.hide();
let out = [].join.call(arguments, ' ') + '\n';
out = wrapAnsi(out, process.stdout.columns || 80, {wordWrap: false, trim: false});
out = wrapAnsi(out, process.stdout.columns || 80, {wordWrap: false, trim: false, hard: true});
stream.write(ansiEscapes.eraseLines(prevLineCount) + out);
prevLineCount = out.split('\n').length;
};
Expand Down

0 comments on commit 0b7bad7

Please sign in to comment.