in lib/strip_color.js [26:34]
function stripColor(str) {
while (true) {
var i = str.indexOf('\x1b[');
if (i < 0) return str;
var j = str.indexOf('m', i);
if (j < 0) return str;
str = str.slice(0, i) + str.slice(j + 1);
}
}