From: Bert Belder Date: Tue, 27 Sep 2011 14:13:59 +0000 (+0200) Subject: Enable console colors on windows by default X-Git-Tag: v0.5.8~14^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81425598db4ca99a65f54a69ea58aa34f519bfe9;p=platform%2Fupstream%2Fnodejs.git Enable console colors on windows by default --- diff --git a/lib/repl.js b/lib/repl.js index 23188e2..de38092 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -56,11 +56,7 @@ function hasOwnProperty(obj, prop) { var context; -exports.disableColors = true; -if (process.platform != 'win32') { - exports.disableColors = process.env.NODE_DISABLE_COLORS ? true : false; -} - +exports.disableColors = process.env.NODE_DISABLE_COLORS ? true : false; // hack for require.resolve("./relative") to work properly. module.filename = process.cwd() + '/repl';