Enable console colors on windows by default
authorBert Belder <bertbelder@gmail.com>
Tue, 27 Sep 2011 14:13:59 +0000 (16:13 +0200)
committerRyan Dahl <ry@tinyclouds.org>
Tue, 27 Sep 2011 20:03:29 +0000 (13:03 -0700)
lib/repl.js

index 23188e2..de38092 100644 (file)
@@ -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';