Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Enable console colors on windows by default
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus authored and ry committed Sep 27, 2011
1 parent 73fcd43 commit 8142559
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/repl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 8142559

Please sign in to comment.