We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dd105d commit 801c200Copy full SHA for 801c200
scripts/start.js
@@ -69,10 +69,12 @@ function formatMessage(message) {
69
.replace('./~/css-loader!./~/postcss-loader!', '');
70
}
71
72
+var isFirstClear = true;
73
function clearConsole() {
- // This seems to work best on Windows and other systems.
74
- // The intention is to clear the output so you can focus on most recent build.
75
- process.stdout.write('\x1bc');
+ // On first run, clear completely so it doesn't show half screen on Windows.
+ // On next runs, use a different sequence that properly scrolls back.
76
+ process.stdout.write(isFirstClear ? '\x1bc' : '\x1b[2J\x1b[0f');
77
+ isFirstClear = false;
78
79
80
function setupCompiler(port, protocol) {
0 commit comments