Skip to content

Commit

Permalink
Fix ANSI escape code syntax error.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 12, 2018
1 parent 48a2031 commit d53f063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/color.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,11 @@ for (var i = 0; i < colors.length; i++) {

exports.color[name + '_bt'] = exports[name + '_bt'] = function(text) {
if (!isSupported) return text;
return '\x1b[' + (90 + i) + 'm' + text + '\x1b[1m';
return '\x1b[' + (90 + i) + 'm' + text + '\x1b[0m';
};
exports.color[name + '_bbt'] = exports[name + '_bbt'] = function(text) {
if (!isSupported) return text;
return '\x1b[' + (100 + i) + 'm' + text + '\x1b[1m';
return '\x1b[' + (100 + i) + 'm' + text + '\x1b[0m';
};
})(i)
}
Expand Down

0 comments on commit d53f063

Please sign in to comment.