Use more color in the repl, loosely inspired by TextMate's SunBurst theme
This commit is contained in:
parent
c4f8f871c9
commit
8c6a7b5de4
10
lib/util.js
10
lib/util.js
@ -59,15 +59,15 @@ exports.inspect = function(obj, showHidden, depth, colors) {
|
|||||||
'yellow' : [33, 39] };
|
'yellow' : [33, 39] };
|
||||||
|
|
||||||
var style =
|
var style =
|
||||||
{ 'special': 'grey',
|
{ 'special': 'cyan',
|
||||||
'number': 'blue',
|
'number': 'blue',
|
||||||
'boolean': 'blue',
|
'boolean': 'yellow',
|
||||||
'undefined': 'red',
|
'undefined': 'grey',
|
||||||
'null': 'red',
|
'null': 'bold',
|
||||||
'string': 'green',
|
'string': 'green',
|
||||||
'date': 'magenta',
|
'date': 'magenta',
|
||||||
// "name": intentionally not styling
|
// "name": intentionally not styling
|
||||||
'regexp': 'cyan' }[styleType];
|
'regexp': 'red' }[styleType];
|
||||||
|
|
||||||
if (style) {
|
if (style) {
|
||||||
return '\033[' + styles[style][0] + 'm' + str +
|
return '\033[' + styles[style][0] + 'm' + str +
|
||||||
|
Loading…
x
Reference in New Issue
Block a user