☕️ Classic, reliable, trusted test framework for Node.js and the browser
Add a few helper cursor functions for Windows.
Nathan Rajlichc8304865739a
diff --git a/lib/reporters/base.js b/lib/reporters/base.jsindex 1e8eaf78..004c547f 100644--- a/lib/reporters/base.js+++ b/lib/reporters/base.js@@ -88,6 +88,19 @@ exports.cursor = {show: function(){process.stdout.write('\033[?25h');+ },++ deleteLine: function(){+ process.stdout.write('\033[2K');+ },++ beginningOfLine: function(){+ process.stdout.write('\033[0G');+ },++ CR: function(){+ exports.cursor.deleteLine();+ exports.cursor.beginningOfLine();}};