adding new line character and 'ok' host colors

This commit is contained in:
jaredevantabor 2016-10-31 17:20:36 -07:00
parent 3e2940203f
commit 51bfc0525a

View File

@ -11,11 +11,11 @@ export default [function(){
// that i'm currently seeing on this branch on the beginning
// and end of each event string. In the future it could be
// used to add styling classes to the actual lines of stdout
line = line.replace(/rn/g, '');
line = line.replace(/rn/g, '\n');
line = line.replace(/u001b/g, '');
// ok
line = line.replace(/\[0;32m/g, '<span class="ansi33">');
line = line.replace(/\[0;32m/g, '<span class="ansi32">');
//unreachable
line = line.replace(/\[1;31m/g, '<span class="ansi1 ansi31">');