projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73fcd43
)
Enable console colors on windows by default
author
Bert Belder
<bertbelder@gmail.com>
Tue, 27 Sep 2011 14:13:59 +0000
(16:13 +0200)
committer
Ryan Dahl
<ry@tinyclouds.org>
Tue, 27 Sep 2011 20:03:29 +0000
(13:03 -0700)
lib/repl.js
patch
|
blob
|
history
diff --git
a/lib/repl.js
b/lib/repl.js
index
23188e2
..
de38092
100644
(file)
--- a/
lib/repl.js
+++ b/
lib/repl.js
@@
-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';