Skip to content

Commit

Permalink
Merge pull request #109 from racker/jguice/stdout_and_stderr_colorize
Browse files Browse the repository at this point in the history
feat(stderr color): colorize all the things
  • Loading branch information
jguice committed Dec 2, 2015
2 parents 7fcea12 + 08c5186 commit 31911e0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions static/js/dreadnot.js
Expand Up @@ -22,12 +22,14 @@ function streamLogs(log) {
val = entry.obj[key].stack;
} else {
val = entry.obj[key];
try {
val = ansi_up.ansi_to_html(val);
}
catch (err) { }
}

// convert ansi color codes to html
try {
val = ansi_up.ansi_to_html(val);
}
catch (err) { }

return '<tr><td class="key">' + key + '</td><td>' + val + '</td></tr>';
}).join('') + '</tbody></table></div>');

Expand Down

0 comments on commit 31911e0

Please sign in to comment.