Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

replaced non-ANSI.SYS escape sequence in landing reporter, fixes #211

David da Silvab1580f11d69b
diff --git a/lib/reporters/landing.js b/lib/reporters/landing.js
index bf064f64..e5ae057e 100644
--- a/lib/reporters/landing.js
+++ b/lib/reporters/landing.js
@@ -56,7 +56,7 @@ function Landing(runner) {
}
runner.on('start', function(){
- stream.write('\n ');
+ stream.write('\n\n\n ');
cursor.hide();
});
@@ -73,7 +73,7 @@ function Landing(runner) {
}
// render landing strip
- stream.write('\u001b[4F\n\n');
+ stream.write('\u001b['+(width+1)+'D\u001b[2A');
stream.write(runway());
stream.write('\n ');
stream.write(color('runway', Array(col).join('⋅')));