Default theme: light

This commit is contained in:
Ionică Bizău 2015-02-01 14:40:40 +02:00
parent 3c784df224
commit ae8f2b8db2

View file

@ -56,7 +56,7 @@ switch (process.argv[2]) {
if (err) throw err; if (err) throw err;
data = AnsiParser.removeAnsi(data); data = AnsiParser.removeAnsi(data);
if (process.argv.indexOf("--no-ansi") === -1) { if (process.argv.indexOf("--no-ansi") === -1) {
var theme = THEMES.LIGHT var theme = THEMES.DARK
, parsed = AnsiParser.parse(data) , parsed = AnsiParser.parse(data)
, i = 0 , i = 0
, c = null , c = null
@ -65,8 +65,8 @@ switch (process.argv[2]) {
data = data.replace(/╝|╗/gm, "═$&") data = data.replace(/╝|╗/gm, "═$&")
data = data.replace(/║$/gm, " $&") data = data.replace(/║$/gm, " $&")
if (process.argv.indexOf("--dark") !== -1) { if (process.argv.indexOf("--light") !== -1) {
theme = THEMES.DARK; theme = THEMES.LIGHT;
} }
data = data.split(""); data = data.split("");