diff --git a/lib/repl.js b/lib/repl.js index 25b05a8880..c258bb03e1 100644 --- a/lib/repl.js +++ b/lib/repl.js @@ -26,7 +26,11 @@ var fs = require('fs'); var rl = require('readline'); var context; -var disableColors = process.env.NODE_DISABLE_COLORS ? true : false; + +var disableColors = true; +if (process.platform != 'win32') { + disableColors = process.env.NODE_DISABLE_COLORS ? true : false; +} // hack for require.resolve("./relative") to work properly.