1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2024-10-27 20:34:20 +00:00

Enable colored output for output logs

This commit is contained in:
Václav Valíček 2017-12-20 12:10:56 +01:00 committed by Oliver Giles
parent 1f23ec5fb2
commit 1bd4300d1b

View File

@ -430,7 +430,7 @@ const Run = function() {
}; };
var firstLog = false; var firstLog = false;
var logHandler = function(vm, d) { var logHandler = function(vm, d) {
state.log += d.replace(/</g,'&lt;').replace(/>/g,'&gt;'); state.log += ansi_up.ansi_to_html(d.replace(/</g,'&lt;').replace(/>/g,'&gt;'));
vm.$forceUpdate(); vm.$forceUpdate();
if (!firstLog) { if (!firstLog) {
firstLog = true; firstLog = true;