From acea482b7cfb3210cdaa36c869c836d9ff5bd05d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan-Andr=C3=A9=20Zinser?= Date: Tue, 20 Mar 2018 23:02:44 +0100 Subject: [PATCH] Update the string that clears the console (#218) --- src/runner/testRunnerReporter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runner/testRunnerReporter.js b/src/runner/testRunnerReporter.js index 0350f33..836e66c 100644 --- a/src/runner/testRunnerReporter.js +++ b/src/runner/testRunnerReporter.js @@ -58,7 +58,7 @@ class Reporter { clearConsole() { if (this.interactive) { - process.stdout.write(process.platform === 'win32' ? '\x1Bc' : '\x1B[2J\x1B[3J\x1B[H'); + process.stdout.write(process.platform === 'win32' ? '\x1B[2J\x1B[0f' : '\x1B[2J\x1B[3J\x1B[H'); } }