From 192d2e0803b5220666c0e2dfef2dade03afafada Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 28 Jan 2011 12:58:19 -0800 Subject: [PATCH] REPL: disable colors in windows for now --- lib/repl.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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.