diff --git a/lib/util.js b/lib/util.js index 65888920c8..53775e74da 100644 --- a/lib/util.js +++ b/lib/util.js @@ -162,8 +162,8 @@ function stylizeWithColor(str, styleType) { var style = styles[styleType]; if (style) { - return '\033[' + colors[style][0] + 'm' + str + - '\033[' + colors[style][1] + 'm'; + return '\u001b[' + colors[style][0] + 'm' + str + + '\u001b[' + colors[style][1] + 'm'; } else { return str; }