Skip to content

Commit 12199ac

Browse files
authored
fix(colors): restore 256 color support, drop redundant effectful ccolors decl embarklabs#50
embarklabs#50
1 parent fa63a5d commit 12199ac

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

lib/colors.js

-17
Original file line numberDiff line numberDiff line change
@@ -283,23 +283,6 @@ exports.colors = (function() {
283283
return cols;
284284
})();
285285

286-
// Map higher colors to the first 8 colors.
287-
// This allows translation of high colors to low colors on 8-color terminals.
288-
exports.ccolors = (function() {
289-
var _cols = exports.vcolors.slice(), cols = exports.colors.slice(), out;
290-
291-
exports.vcolors = exports.vcolors.slice(0, 8);
292-
exports.colors = exports.colors.slice(0, 8);
293-
294-
out = cols.map(exports.match);
295-
296-
exports.colors = cols;
297-
exports.vcolors = _cols;
298-
exports.ccolors = out;
299-
300-
return out;
301-
})();
302-
303286
var colorNames = exports.colorNames = {
304287
// special
305288
default: -1,

0 commit comments

Comments
 (0)