Skip to content

Commit 2e20fd1

Browse files
authored
Use a more solid way to reset the console
This seems to work best, both on Windows, OS X, and Linux
1 parent d071aa0 commit 2e20fd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function formatMessage(message) {
6666
}
6767

6868
function clearConsole() {
69-
process.stdout.write('\x1B[2J\x1B[0f');
69+
process.stdout.write('\x1bc');
7070
}
7171

7272
function setupCompiler(port) {

0 commit comments

Comments
 (0)