REPL: disable colors in windows for now

pull/22966/head
Ryan Dahl 2011-01-28 12:58:19 -08:00
parent 88947dc4f0
commit 192d2e0803
1 changed files with 5 additions and 1 deletions

View File

@ -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.