File tree Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Expand file tree Collapse file tree 1 file changed +8
-17
lines changed Original file line number Diff line number Diff line change 44var fs = require ( 'fs' ) ;
55
66var colors = [
7- '\x1B[34m' ,
8- '\x1B[36m' ,
9- '\x1B[32m' ,
10- '\x1B[35m' ,
11- '\x1B[31m' ,
12- '\x1B[30m' ,
13- '\x1B[90m' ,
14- '\x1B[33m' ,
15- '\x1B[34m' ,
16- '\x1B[36m' ,
17- '\x1B[32m' ,
18- '\x1B[35m' ,
19- '\x1B[31m' ,
20- '\x1B[30m' ,
21- '\x1B[90m' ,
22- '\x1B[33m'
7+ '\x1B[34m' , // blue
8+ '\x1B[36m' , // cyan
9+ '\x1B[32m' , // green
10+ '\x1B[35m' , // magenta
11+ '\x1B[31m' , // red
12+ '\x1B[90m' , // grey
13+ '\x1B[33m' , // yellow
2314] ;
2415
2516var gl_idx = 0 ;
@@ -41,7 +32,7 @@ Log.stream = function(path, title) {
4132 return false ;
4233 }
4334
44- var odb = db [ title ] = { color : colors [ gl_idx ++ ] , l : 0 } ;
35+ var odb = db [ title ] = { color : colors [ gl_idx ++ % colors . length ] , l : 0 } ;
4536
4637 fs . stat ( path , function ( err , stat ) {
4738 var rstream = fs . createReadStream ( path , {
You can’t perform that action at this time.
0 commit comments